- 论坛徽章:
- 0
|
本帖最后由 tomshenhao 于 2011-09-22 15:31 编辑
虚拟机软件:VMware® Workstation 7.0.1 build-227600
虚拟系统:RHEL 5.3
我搭建了两台虚拟机,系统都是RHEL5.3。
两台的网络连接使用的都是HOST-ONLY。
IP: 11.11.0.101/255.255.0.0
IP: 11.11.0.103/255.255.0.0
我本机的话设置的VMnet1,IP: 11.11.0.100
从本机可以使用SSH协议连接两台虚拟机。
但是虚拟机之间好像只能单向正常SSH连接。
两边的防火墙都已经关闭了。
从103可以很快SSH连接到101;但是反之就根本连接不通。
具体有什么配置文件需要修改?
[root@rhel_1 ~]# ping 11.11.0.103
PING 11.11.0.103 (11.11.0.103) 56(84) bytes of data.
64 bytes from 11.11.0.103: icmp_seq=1 ttl=64 time=0.731 ms
64 bytes from 11.11.0.103: icmp_seq=2 ttl=64 time=1.10 ms
64 bytes from 11.11.0.103: icmp_seq=3 ttl=64 time=1.56 ms
64 bytes from 11.11.0.103: icmp_seq=4 ttl=64 time=0.241 ms
64 bytes from 11.11.0.103: icmp_seq=5 ttl=64 time=0.516 ms
64 bytes from 11.11.0.103: icmp_seq=6 ttl=64 time=0.243 ms
64 bytes from 11.11.0.103: icmp_seq=7 ttl=64 time=1.54 ms
64 bytes from 11.11.0.103: icmp_seq=8 ttl=64 time=0.718 ms
64 bytes from 11.11.0.103: icmp_seq=9 ttl=64 time=0.193 ms
64 bytes from 11.11.0.103: icmp_seq=10 ttl=64 time=0.413 ms
--- 11.11.0.103 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9008ms
rtt min/avg/max/mdev = 0.193/0.726/1.563/0.490 ms
[root@rhel_1 ~]# telnet 11.11.0.103 22
Trying 11.11.0.103...
Connected to 11.11.0.103 (11.11.0.103).
Escape character is '^]'.
SSH-2.0-OpenSSH_4.3
Protocol mismatch.
Connection closed by foreign host.
[root@rhel_2 ~]# ping 11.11.0.101
PING 11.11.0.101 (11.11.0.101) 56(84) bytes of data.
64 bytes from 11.11.0.101: icmp_seq=1 ttl=64 time=3.26 ms
64 bytes from 11.11.0.101: icmp_seq=2 ttl=64 time=0.629 ms
64 bytes from 11.11.0.101: icmp_seq=3 ttl=64 time=0.662 ms
64 bytes from 11.11.0.101: icmp_seq=4 ttl=64 time=0.629 ms
64 bytes from 11.11.0.101: icmp_seq=5 ttl=64 time=3.77 ms
64 bytes from 11.11.0.101: icmp_seq=6 ttl=64 time=0.268 ms
64 bytes from 11.11.0.101: icmp_seq=7 ttl=64 time=0.805 ms
64 bytes from 11.11.0.101: icmp_seq=8 ttl=64 time=0.568 ms
64 bytes from 11.11.0.101: icmp_seq=9 ttl=64 time=0.285 ms
64 bytes from 11.11.0.101: icmp_seq=10 ttl=64 time=0.486 ms
--- 11.11.0.101 ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9015ms
rtt min/avg/max/mdev = 0.268/1.137/3.771/1.206 ms
[root@rhel_2 ~]# telnet 11.11.0.101 22
Trying 11.11.0.101...
Connected to 11.11.0.101 (11.11.0.101).
Escape character is '^]'.
SSH-2.0-OpenSSH_4.3
Protocol mismatch.
Connection closed by foreign host. |
|