ssh: connect to host github.com port 443: Connection timed out

新手上路,请多包涵

stackoverflow上有一个同样的问题
提示:

$ ssh git@ssh.github.com

ssh: connect to host ssh.github.com port 22: Connection timed out

然后,网上大部分人说在config中改为443端口:

Host github.com
User myusername
Hostname ssh.github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
Port 443

即使这样,还是连接超时:

ssh: connect to host github.com port 443: Connection timed out

求大神解答一下。

阅读 5k
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进