小编fyz*_*x92的帖子

为什么我会收到 ssh 连接超时错误?

首先,我对 SSH 还很陌生。我以前用过它,但从来不需要处理太多的设置或导航细节。从 ServerFault 迁移。

每当我尝试从 Windows 10 计算机 ssh 到公共 IP 地址时,都会收到类似 的错误ssh: connect to username@<public ip address> port 22: Connection timed out

我可以使用私有IP地址从Windows连接到我自己的Linux机器,并且我的Windows机器使用ssh公钥/私钥身份验证连接到github。我的 Linux 机器可以通过 ssh 连接到外部服务器(如 AWS),据我所知,这只是我的 Windows 机器,而且只是公共 IP 地址。

这是带有该选项的输出-vv,在不同的端口上:

ssh -vv -p 2200 example.com                                                                                  OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5                                                                                       debug2: resolving "example.com" port 2200                                                                                       debug2: ssh_connect_direct: needpriv 0                                                                                          debug1: Connecting to example.com [93.184.216.34] port 2200.                                                                    debug1: connect to address 93.184.216.34 port 2200: Connection timed out                                                        ssh: connect to host example.com port 2200: …
Run Code Online (Sandbox Code Playgroud)

windows ssh timeout

5
推荐指数
1
解决办法
11万
查看次数

标签 统计

ssh ×1

timeout ×1

windows ×1