$ git pull project develop
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.
project中有代码更新,但是连接失败怎么解决,github中ssh码已经绑定。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
首先确认是不是网络的问题,网络不好的话国内连Github会经常超时。
不是网络问题的话,如果安装了
Github desktop
可以先打开下,然后在git pull
。github国内时常抽风,多试试就可以了。
或者你可以购买VPN,挂VPN进行操作。
官方帮助给的解决方式是使用 ssh 443端口:
1,先测试可用性
提示如下证明可用
2,然后编辑~/.ssh/config 文件,如果没有config文件的话就直接vim ~/.ssh/config加入如下内容
再次测试
提示如下即可用
3,参考github官方帮助:
https://help.github.com/artic...