SSH 连接超时

SSH 连接超时

我家里的 Raspberry Pi 上运行着一个 SSH 服务器,我正尝试从 Windows 10 机器上的学校网络进行连接。请注意,我在 github 上安装了 OpenSSH 二进制文件,这些文件标记为适用于 Windows 7,但我认为这并不相关。每当我尝试从学校 ssh 进入我的 RPi 时,它都会超时。

PS C:\Program Files\OpenSSH-Win64> ./ssh -v [email protected]
OpenSSH_for_Windows_7.9p1, LibreSSL 2.6.5
debug1: Connecting to 184.bbb.ccc.ddd [184.bbb.ccc.ddd] port 22.
debug1: connect to address 184.bbb.ccc.ddd port 22: Connection timed out
ssh: connect to host 184.bbb.ccc.ddd port 22: Connection timed out 

Ping 工作正常:

PS C:\Program Files\OpenSSH-Win64> ping 184.bbb.ccc.ddd
Pinging 184.bbb.ccc.ddd with 32 bytes of data:
Reply from 184.bbb.ccc.ddd: bytes=32 time=77ms TTL=57
Reply from 184.bbb.ccc.ddd: bytes=32 time=76ms TTL=57
Reply from 184.bbb.ccc.ddd: bytes=32 time=76ms TTL=57
Reply from 184.bbb.ccc.ddd: bytes=32 time=75ms TTL=57
Ping statistics for 184.bbb.ccc.ddd:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 75ms, Maximum = 77ms, Average = 76ms

服务器端,输出grep sshd /var/log/auth.log没有显示任何尝试连接。我可以用手机完美地进行 ssh,所以我认为一定是学校网络方面出了问题。我检查了 Windows 中的防火墙规则。奇怪的是,我曾是可以使用上面相同的命令进行连接,一次。而且它是随机发生的,就像第五次尝试之类的。从那时起,每次尝试都超时了。

相关内容