I use the Xshell, in it I can ping the VM's IP address(NAT model).[c:\~]$ ping 45.117.42.131 Ping 45.117.42.131  32 : 45.117.42.131 : =32 <1ms TTL=128 45.117.42.131 : =32 <1ms TTL=128 45.117.42.131 : =32 <1ms TTL=128 45.117.42.131 : =32 <1ms TTL=12845.117.42.131  Ping :    :  = 4 = 4 = 0 (0% )():     = 0ms = 0ms = 0msBut I can not connect to the IP (45.117.42.131):[c:\~]$ ssh root@45.117.42.131Connecting to 45.117.42.131:22...Could not connect to '45.117.42.131' (port 22): Connection failed.In the VM I have disabled/stoped the selinux and firewalld.And I can also ping the www.google.com in the VM.VM system is CentOS 7.2.And this below is the NIC config of the IPifcfg-eno33554960:(I only can post snapshoot, because I can not copy the code in the VMware)EDITI checked the sshd use the ps command:EDIT -2But if I use the:service sshd status it shows the sshd.service is running(active), you see the upper EDIT is Ss status.EDIT-3iptables:EDIT-4netstat -nltp shows below:
Xshell can not connect to the VM, but can ping it
centos;networking;virtual machine