我使用的是vmware 8.0安装Red Hat5.4,之前装过2遍,一直是用open ssh连接PC和虚拟机,简单操作,相安无事,从未出现互ping不通等问题。
偶然今天重装了虚拟机,结果死活连接不上ssh。
pc 下 cmd ipconfig 然后ping 虚拟机IP,ping 不通。
linux 下 ifconfig ,ping 主机ip,可以ping 通。
1、检查防火墙状态,予以关闭。
/etc/init.d/iptables status
service iptables stop 关闭防火墙
或使用 setup 命令,然后设置关闭防火墙。
2、检查ssh 服务状态,启动服务。
service sshd start
纠结:防火墙关闭了,ssh服务启动,但还是PC无法PING通虚拟机,
VMware 里网络适配器里使用的net 连接,不用桥连接,也不是Host-only。
windows7 里 VMware Network Adapter VMnet1 与 VMnet8,不用管。
结果:可以说使尽浑身解数仍然无果,结果是360捣的乱。前不久我开了360的流量防火墙服务,导致了这个恶果,直接把360退了,OK,互ping畅通,开始ssh传输。
偶然今天重装了虚拟机,结果死活连接不上ssh。
pc 下 cmd ipconfig 然后ping 虚拟机IP,ping 不通。
linux 下 ifconfig ,ping 主机ip,可以ping 通。
1、检查防火墙状态,予以关闭。
/etc/init.d/iptables status
service iptables stop 关闭防火墙
或使用 setup 命令,然后设置关闭防火墙。
2、检查ssh 服务状态,启动服务。
service sshd start
纠结:防火墙关闭了,ssh服务启动,但还是PC无法PING通虚拟机,
VMware 里网络适配器里使用的net 连接,不用桥连接,也不是Host-only。
windows7 里 VMware Network Adapter VMnet1 与 VMnet8,不用管。
结果:可以说使尽浑身解数仍然无果,结果是360捣的乱。前不久我开了360的流量防火墙服务,导致了这个恶果,直接把360退了,OK,互ping畅通,开始ssh传输。