使用不同的 wifi 连接时 SSH 连接超时

使用不同的 wifi 连接时 SSH 连接超时

我正在尝试通过 ssh 远程访问我的办公室电脑,但遇到了连接超时错误。奇怪的是,我使用家里的wifi时遇到连接超时,但使用手机热点却能连接。

我花了几个小时试图找出问题所在,但仍然无法使用 ssh 连接我的办公室电脑。我认为我的路由器可能阻止了连接,但我完全不知道如何解决这个问题。

我正在使用 WSL 2 Ubuntu 20.04.3 LTS。

尝试使用我的家庭 WiFi 连接到我的办公室电脑时的结果:

myname@DESKTOP-XXX:~$ ssh -vvv nitrogen   
OpenSSH_8.2p1 Ubuntu-4ubuntu0.4, OpenSSL 1.1.1f  31 Mar 2020  
debug1: Reading configuration data /home/myname/.ssh/config
debug1: /home/myname/.ssh/config line 2: Applying options for {CONNECTION_NAME}*
debug1: /home/myname/.ssh/config line 9: Applying options for {CONNECTION_NAME}
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *     
debug2: resolve_canonicalize: hostname 129.126.125.250 is address        
debug2: ssh_connect_direct
debug1: Connecting to 129.126.125.250 [129.126.125.250] port {PORT_NUM}.     
debug1: connect to address 129.126.125.250 port 1818: Connection timed out  
ssh: connect to host 129.126.125.250 port 1818: Connection timed out 

跟踪路由的输出

traceroute to 129.126.125.250 (129.126.125.250), 30 hops max, 60 byte packets 
1 DESKTOP-A16BBJK.mshome.net (192.168.48.1) 0.518 ms 0.486 ms 0.531 ms 
2 192.168.253.180 (192.168.253.180) 57.011 ms 56.996 ms 56.983 ms 
3 Singtel-ACPlus (192.168.1.254) 95.410 ms 95.397 ms 95.385 ms 
4 bb118-200-31-254.singnet.com.sg (118.200.31.254) 943.759 ms 943.747 ms 1044.329 ms 
5 165.21.193.22 (165.21.193.22) 95.486 ms 95.320 ms 95.460 ms 
6 165.21.193.21 (165.21.193.21) 70.440 ms 68.414 ms 68.395 ms 
7 165.21.138.245 (165.21.138.245) 68.465 ms 7.675 ms 23.166 ms 
8 SN-SINQT1-BO403-ae1.singnet.com.sg (165.21.138.85) 7.568 ms 18.002 ms 19.879 ms 
9 203.208.177.213 (203.208.177.213) 19.788 ms 19.688 ms 19.750 ms 
10 203.208.149.25 (203.208.149.25) 19.894 ms 203.208.172.213 (203.208.172.213) 19.875 ms 19.860 ms 
11 203.208.166.241 (203.208.166.241) 20.381 ms 20.362 ms 20.343 ms 
12 203.208.175.154 (203.208.175.154) 20.362 ms 20.343 ms 19.398 ms 
13 203.208.182.253 (203.208.182.253) 19.380 ms 19.369 ms 147.203-211-159.unknown.qala.com.sg (203.211.159.147) 17.173 ms 
14 129.126.98.226 (129.126.98.226) 20.797 ms 203.208.175.154 (203.208.175.154) 20.740 ms 20.709 ms 
15 * * * 
16 * * * 
17 * * * 
18 * * * 
19 * * * 
20 * * * 
21 * * * 
22 * * * 
23 * * * 
24 * * *
25 * * * 
26 * * * 
27 * * *                                                                                                                 

谢谢,任何帮助将不胜感激

编辑1:

IP地址:129.126.125.250

端口1818

编辑2:在输出中添加IP和端口添加traceroute

相关内容