SSH를 사용하여 호스트로 가는 경로가 없습니다.

SSH를 사용하여 호스트로 가는 경로가 없습니다.

SSH를 사용하여 원격 서버에 연결하는 데 문제가 있습니다. xxx.xxx.xxx.xx1에 기본 포트 22를 사용하는 서버 A가 있습니다. xxx.xxx.xxx.xx2에 기본 포트 22를 사용하는 다른 서버 B가 있습니다. 이제 SSH를 사용하여 serverA에서 serverB에 연결하고 싶습니다. 다음 명령을 사용했습니다.

[userA@localhost~] # ssh userB@serverB

이 명령을 실행하면 다음과 같은 오류가 발생합니다.

ssh: connect to host xxx.xxx.xxx.xx1 port 22: No route to host

serverA에 로그인하면 이 메시지가 다시 표시됩니다. [사용자 A@localhost~]#

이 문제 를 [userA@serverA ~] # 해결하는 방법에 대한 아이디어가 있는 사람이 있습니까?

고쳐 쓰다

ping을 했지만 다음과 같은 응답을 받았습니다.

[userA@localhost ~]# /bin/ping xxx.xxx.xxx.xx1
PING xxx.xxx.xxx.xx1 (xxx.xxx.xxx.xx1) 56(84) bytes of data.
From 192.168.24.1: icmp_seq=2 Redirect Host(New nexthop: xxx.xxx.xxx.xx1)
From 192.168.24.1: icmp_seq=3 Redirect Host(New nexthop: xxx.xxx.xxx.xx1)
From 192.168.24.1: icmp_seq=4 Redirect Host(New nexthop: xxx.xxx.xxx.xx1)
From 192.168.24.1 icmp_seq=2 Destination Host Unreachable
From 192.168.24.1 icmp_seq=3 Destination Host Unreachable
From 192.168.24.1 icmp_seq=4 Destination Host Unreachable
From 192.168.24.1: icmp_seq=5 Redirect Host(New nexthop: xxx.xxx.xxx.xx1)
From 192.168.24.1: icmp_seq=6 Redirect Host(New nexthop: xxx.xxx.xxx.xx1)
From 192.168.24.1: icmp_seq=8 Redirect Host(New nexthop: xxx.xxx.xxx.xx1)
From 192.168.24.1 icmp_seq=6 Destination Host Unreachable
From 192.168.24.1 icmp_seq=7 Destination Host Unreachable
From 192.168.24.1 icmp_seq=8 Destination Host Unreachable
From 192.168.24.1: icmp_seq=11 Redirect Host(New nexthop: xxx.xxx.xxx.xx1)
From 192.168.24.1 icmp_seq=10 Destination Host Unreachable
From 192.168.24.1 icmp_seq=11 Destination Host Unreachable
From 192.168.24.1 icmp_seq=12 Destination Host Unreachable
From 192.168.24.1 icmp_seq=13 Destination Host Unreachable
From 192.168.24.1 icmp_seq=14 Destination Host Unreachable
From 192.168.24.1 icmp_seq=15 Destination Host Unreachable
From 192.168.24.1: icmp_seq=17 Redirect Host(New nexthop: xxx.xxx.xxx.xx1)
From 192.168.24.1 icmp_seq=17 Destination Host Unreachable
From 192.168.24.1 icmp_seq=18 Destination Host Unreachable

업데이트-2

netstat 명령을 실행하여 다음과 같은 결과를 얻었습니다.

[userA@localhost ~]# netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.24.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.24.1    0.0.0.0         UG        0 0          0 eth0

관련 정보