我现在在vmware7.0中装的centOS,ssh服务开启了,通过桥接方式上网。
虚拟机ip设置为192.168.1.117,本机ip 192.168.1.101,另外还有台机器ip 192.168.1.100。
现在都能上网,都能互相ping通,但是本机却不能用ssh连接linux系统,另外台机器却可以。
本机防火墙不全关的情况下xshell提示 Connecting to 192.168.1.117:22...
Connection established. Escape character is '^@]'.
Connection closed by foreign host.
全关的情况下xshell提示
Connecting to 192.168.1.117:22...
Could not connect to '192.168.1.117' (port 22):
Connection failed. Type `help' to learn how to use Xshell prompt.
重新设置vmware ip 就好了:
打开虚拟机饿 edit 菜单,
选择virtual network edit 选项 ,
点击 restore default 按钮,
处理完成后重启虚拟机 就可以解决这个问题了
原因 你的 vmnat 1,8 有跟 你当前主机的ip在同一个网段,或者同一个ip,网乱了,重置下就 OK了