问题记录 <git push 到 github 时遇到 ssh 端口问题>
问题描述
git push
时遇到如下问题:
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
解决方式
通过修改端口得以解决,将22端口改为443,添加~/.ssh/config
内容如下:
Host github.com
Hostname ssh.github.com
Port 443
参考
本文来自博客园,作者:O2iginal,转载请注明原文链接:https://www.cnblogs.com/o2iginal/p/17624824.html