@
Lpl #9
我这里手头就一台电脑。。。
在我 mac 上执行结果
➜ ~ ssh -V
OpenSSH_7.5p1, OpenSSL 1.0.2l 25 May 2017
➜ ~ traceroute cx.dev.aws
traceroute to cx.dev.aws (52.36.88.202), 64 hops max, 52 byte packets
1 openwrt (192.168.10.1) 1.162 ms 0.817 ms 3.183 ms
2 10.202.128.1 (10.202.128.1) 2.279 ms 4.065 ms 2.137 ms
3 10.253.53.1 (10.253.53.1) 2.093 ms 1.588 ms 2.280 ms
4 * * 10.253.53.66 (10.253.53.66) 5.434 ms
5 218.201.122.29 (218.201.122.29) 3.356 ms
218.201.171.193 (218.201.171.193) 2.817 ms
218.201.122.29 (218.201.122.29) 3.261 ms
6 * * *
7 221.183.12.205 (221.183.12.205) 4.331 ms
221.183.26.121 (221.183.26.121) 6.540 ms
221.183.12.205 (221.183.12.205) 3.874 ms
8 221.183.10.26 (221.183.10.26) 43.694 ms 25.852 ms
221.183.36.9 (221.183.36.9) 19.855 ms
9 * * *
10 * * *
11 221.183.30.230 (221.183.30.230) 236.005 ms *
221.183.30.242 (221.183.30.242) 195.771 ms
12 223.118.10.154 (223.118.10.154) 202.130 ms
223.118.10.18 (223.118.10.18) 204.819 ms 201.587 ms
13 223.119.64.30 (223.119.64.30) 187.104 ms
223.119.64.38 (223.119.64.38) 201.632 ms 201.745 ms
14 54.239.102.56 (54.239.102.56) 199.599 ms * 210.335 ms
15 54.239.103.61 (54.239.103.61) 207.729 ms
54.239.102.223 (54.239.102.223) 206.440 ms 202.570 ms
16 54.239.42.116 (54.239.42.116) 245.681 ms *
54.239.42.118 (54.239.42.118) 296.105 ms
17 52.93.14.48 (52.93.14.48) 242.277 ms
52.93.13.2 (52.93.13.2) 220.075 ms
52.93.13.40 (52.93.13.40) 342.491 ms
18 52.93.12.33 (52.93.12.33) 405.642 ms
52.93.12.73 (52.93.12.73) 231.978 ms
52.93.14.251 (52.93.14.251) 233.059 ms
19 52.93.12.36 (52.93.12.36) 246.425 ms
52.93.15.30 (52.93.15.30) 232.340 ms
52.93.14.38 (52.93.14.38) 234.581 ms
20 52.93.14.57 (52.93.14.57) 231.434 ms
52.93.12.207 (52.93.12.207) 222.136 ms
52.93.15.53 (52.93.15.53) 224.676 ms
21 52.93.15.215 (52.93.15.215) 215.976 ms
54.239.48.183 (54.239.48.183) 227.565 ms
52.93.15.213 (52.93.15.213) 295.120 ms
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27
x.dev.aws.canior.com (52.36.88.202) 231.117 ms 230.676 ms *
➜ ~ telnet cx.dev.aws 22
Trying 52.36.88.202...
Connected to cx.dev.aws.
Escape character is '^]'.
SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.4
我在我的主路由上的执行结果如下:
root@OpenWrt:~# ping 52.36.88.202
PING 52.36.88.202 (52.36.88.202): 56 data bytes
64 bytes from 52.36.88.202: seq=0 ttl=41 time=225.125 ms
64 bytes from 52.36.88.202: seq=1 ttl=40 time=227.555 ms
64 bytes from 52.36.88.202: seq=2 ttl=40 time=227.336 ms
^C
--- 52.36.88.202 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 225.125/226.672/227.555 ms
root@OpenWrt:~# traceroute 52.36.88.202
traceroute to 52.36.88.202 (52.36.88.202), 30 hops max, 38 byte packets
1 10.202.128.1 (10.202.128.1) 2.306 ms 2.553 ms 15.661 ms
2 10.253.53.1 (10.253.53.1) 1.418 ms 1.194 ms 0.936 ms
3 * * *
4 223.96.95.153 (223.96.95.153) 2.317 ms 218.201.171.193 (218.201.171.193) 1.724 ms 218.201.122.29 (218.201.122.29) 1.724 ms
5 * 120.192.97.101 (120.192.97.101) 9.342 ms *
6 221.183.27.89 (221.183.27.89) 3.481 ms 221.183.12.193 (221.183.12.193) 23.044 ms 221.183.26.121 (221.183.26.121) 2.877 ms
7 221.183.36.9 (221.183.36.9) 19.007 ms 14.025 ms 221.176.15.37 (221.176.15.37) 17.089 ms
8 * 221.176.21.230 (221.176.21.230) 18.245 ms 27.960 ms
9 * * *
10 221.183.30.242 (221.183.30.242) 186.954 ms 221.183.30.246 (221.183.30.246) 188.862 ms 200.030 ms
11 223.118.10.18 (223.118.10.18) 204.393 ms 223.118.10.86 (223.118.10.86) 195.973 ms 223.118.10.154 (223.118.10.154) 200.133 ms
12 223.119.64.38 (223.119.64.38) 206.754 ms 202.524 ms 208.163 ms
13 54.239.103.28 (54.239.103.28) 218.129 ms 54.239.102.104 (54.239.102.104) 196.180 ms 54.239.102.56 (54.239.102.56) 207.001 ms
14 54.239.102.87 (54.239.102.87) 201.614 ms 54.239.102.109 (54.239.102.109) 189.092 ms 54.239.102.221 (54.239.102.221) 214.834 ms
15 * * *
16 52.93.12.112 (52.93.12.112) 215.291 ms * 52.93.12.42 (52.93.12.42) 226.266 ms
17 52.93.14.219 (52.93.14.219) 227.360 ms 52.93.12.251 (52.93.12.251) 219.053 ms 52.93.14.39 (52.93.14.39) 225.515 ms
18 * 52.93.15.28 (52.93.15.28) 240.180 ms *
19 52.93.14.135 (52.93.14.135) 227.909 ms 52.93.15.59 (52.93.15.59) 226.461 ms *
20 52.93.15.209 (52.93.15.209) 222.906 ms 205.251.232.63 (205.251.232.63) 228.408 ms 52.93.15.237 (52.93.15.237) 219.540 ms
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 52.36.88.202 (52.36.88.202) 223.111 ms 230.957 ms 225.518 ms
root@OpenWrt:~# telnet 52.36.88.202 22
SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.4
非常感谢你这么上心,不过按照我之前帖子,提出来的 ssh 的 debug 信息来看,我已经成功连接到服务器的端口上,并且完成了身份认证了,所以我觉得你给出的这三条命令,并不能看出来什么端倪。
另外关于『然后,你切换手机热点就能登录,可以发现问题是出在网络上,这个网络可能是你路由器的原因,也可能是网络运营商的原因』,其实很奇怪,如果说我网络有问题的话,我电脑里的虚拟机通过 NAT 应该也登陆不上去。而实际上我电脑里的虚拟环境(vbox 和 docker 容器)只要用 NAT 联网,就很正常的登陆远程服务器。我在我主路由上也尝试过登陆远程服务器,也是登陆不上去,跟我在 mac 上的表现一致。