git push/pull 出现’ssh: connect to host github.com port 22: Connection timed out‘的快速解决方案
前置
本人在执行git push/pull
时持续报错如下:
1 | ssh: connect to host github.com port 22: Connection timed out |
既然22端口无法连接,那就直接改为443端口。
解决
终端直接编辑ssh配置:
1 | nano ~/.ssh/config |
加入:
1 | Host github.com |
重新执行,ssh应该已经可以正常建立连接。
本文采用CC BY-NC-SA 4.0协议,完整转载请注明来自陵长镜的小博客
评论 ()