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

求大神解答一下。

阅读 5.2k
1 个回答