
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