Could not connect to '10.0.0.200' (port 22): Connection failed.

关于xshell 连接虚拟机的一个问题

提示信息意思是:无法连接到“10.0.0.200”(端口22):连接失败。

Could not connect to '10.0.0.200' (port 22): Connection failed.

我的centos是6.9版本的,VMware是15版本的

最后发现是VMware软件的设置问题

这是我的虚拟机网卡设置

Could not connect to '10.0.0.200' (port 22): Connection failed.

首先打开软件中的虚拟网络编辑器

Could not connect to '10.0.0.200' (port 22): Connection failed.

一开始我的设置是这样的

Could not connect to '10.0.0.200' (port 22): Connection failed.

点击更改设置

Could not connect to '10.0.0.200' (port 22): Connection failed.

还原默认设置就可以了

Could not connect to '10.0.0.200' (port 22): Connection failed.

最后再次打开虚拟网络编辑器是这样的,,记得你的虚拟机系统地址要和你的虚拟网络是同一个网段哦

Could not connect to '10.0.0.200' (port 22): Connection failed.

虚拟机中 ifconfig 查看我们网卡的配置

Could not connect to '10.0.0.200' (port 22): Connection failed.

在Windows中ping一下虚拟机的地址,像这样就可以用xshell连接了

Could not connect to '10.0.0.200' (port 22): Connection failed.