大家好
我在win7的VMware上裝了CentOS 6.4, 而win7網路是在NAT下(192.168.0.x)
原本此VM的網路設為NAT, 可以在host OS用ssh連上去(此時CentOS的 ip 是 192.168.19.x)
但網路改成bridged就沒辦法用ssh連了, putty訊息是connection time out
以下一些情況
1. bridged network下CentOS的ip變為192.168.0.x, 可以ping的到但ssh連不上
2. 查"netstat -anp|grep sshd"的結果是, sshd應該是有在run
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1442/sshd
tcp 0 0 :::22 :::* LISTEN 1442/sshd
3. 有試著關掉iptables, 一樣是connection time out
有人知道原因嗎? 謝謝~
--
我在win7的VMware上裝了CentOS 6.4, 而win7網路是在NAT下(192.168.0.x)
原本此VM的網路設為NAT, 可以在host OS用ssh連上去(此時CentOS的 ip 是 192.168.19.x)
但網路改成bridged就沒辦法用ssh連了, putty訊息是connection time out
以下一些情況
1. bridged network下CentOS的ip變為192.168.0.x, 可以ping的到但ssh連不上
2. 查"netstat -anp|grep sshd"的結果是, sshd應該是有在run
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1442/sshd
tcp 0 0 :::22 :::* LISTEN 1442/sshd
3. 有試著關掉iptables, 一樣是connection time out
有人知道原因嗎? 謝謝~
--
All Comments