【问题标题】:ssh: connect to host github.com port 22 and also 443: Connection timed outssh:连接到主机 github.com 端口 22 和 443:连接超时
【发布时间】:2022-02-23 04:04:15
【问题描述】:

我在使用 ssh 连接到 github 时遇到问题。

我正在尝试使用

ssh -T git@github.com
ssh: connect to host github.com port 22: Connection timed out

或

ssh -T -p 443 git@ssh.github.com
ssh: connect to host ssh.github.com port 443: Connection timed out

所以编辑 ~/.ssh/config(如建议的 here)对我没有任何帮助

我不明白的是,我可以 telnet ssh 端口没有任何问题

telnet github.com 22
Trying 140.82.121.4...
Connected to github.com.
Escape character is '^]'.
SSH-2.0-babeld-e1420b26

此外,当我使用 VPN 或手机作为 LTE 热点时,一切正常。我有一个 mikrotik 路由器,很久没有碰过或更换过。

【问题讨论】:

    标签: github ssh timeout


    【解决方案1】:

    所以我终于找到了问题所在,这是因为我的 ISP 的路由无效。

    【讨论】:

      猜你喜欢
      • 2013-03-13
      • 1970-01-01
      • 2017-01-22
      • 2015-09-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-01
      相关资源
      最近更新 更多