Unable to connect Centos 7 through PuTTY

Issues related to configuring your network
Post Reply
Vidyarathna
Posts: 13
Joined: 2018/02/27 12:37:53
Location: Sri Lanka

Unable to connect Centos 7 through PuTTY

Post by Vidyarathna » 2018/03/02 16:02:07

Hello i installed Centos 7 on vmware and configured static ip using this command

Code: Select all

vi/etc/sysconfig/network-scripts/ifcfg-ens33
Image

after that i reboot my virtual pc and issued these commands.

Image

after that i tried to connect centos 7 pc using putty.

Image

but it gives me following error.

Image

so how to fix it.please help
Thank you

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Unable to connect Centos 7 through PuTTY

Post by TrevorH » 2018/03/02 16:12:52

First "root@192.168.10.2" is not a "Host Name (or IP address)". You need to lose the root@ from that as putty has another field for the username. Next thing to check is the networking mode that you told VMWare to use - most likely it needs to be "bridged" or whatever VMWare calls it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Vidyarathna
Posts: 13
Joined: 2018/02/27 12:37:53
Location: Sri Lanka

Re: Unable to connect Centos 7 through PuTTY

Post by Vidyarathna » 2018/03/02 16:31:53

TrevorH wrote:First "root@192.168.10.2" is not a "Host Name (or IP address)". You need to lose the root@ from that as putty has another field for the username. Next thing to check is the networking mode that you told VMWare to use - most likely it needs to be "bridged" or whatever VMWare calls it.
but insted of ststic ip, when i use dhcp using "dhclient -v" i can connect using above settings .i'm using networking mode NAT both occasions :?: :!:

Image
Image
Image

Thanks

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Unable to connect Centos 7 through PuTTY

Post by TrevorH » 2018/03/02 16:37:44

If you use NAT then you must use an ip address that's within the subnet that it wants you to use - i.e. pick one in the same subnet that you would get from using DHCP.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Vidyarathna
Posts: 13
Joined: 2018/02/27 12:37:53
Location: Sri Lanka

Re: Unable to connect Centos 7 through PuTTY

Post by Vidyarathna » 2018/03/06 15:06:27

Thank you very much friends for help.really appreciated ! 8-)

Post Reply