Github项目无法通过 ssh 连接,以前正常使用的,现在无法 push pull
一、问题描述
2024-01-18
这两天遇到一个问题,就是以前正常使用的项目,现在无法 push 或 pull 了。
我所有的项目都是以 git@github.com:KyleBing/xxxx.git
的方式使用的,不想改成 https://
。
错误提示是这样的:
ssh: connect to host github.com port 22: Connection timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
二、解决
我将以前那种方式
git clone git@github.com:KyleBing/iphone.git iphone-vue
改成