问题记录 <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

参考

posted @ 2023-08-12 15:03  O2iginal  阅读(65)  评论(0)    收藏  举报