问题记录 <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
参考
- https://zhuanlan.zhihu.com/p/521340971