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
求大神解答一下。
所以这是没有人回答吗?
听说要更新 SSH Keys,还有清理 DNS 缓存...... 我试过了,都不行啊
2022年05月30日更新:
修改 hosts 文件 OK 了!可以参考这里:https://getiot.tech/github/github-errata-port-443-connection-refused.html