Git 客户端报错:ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from remote repository.


在使用 Git 客户端 clone GitHub上的项目时,报错:

ssh: connect to host github.com port 22: Connection timed out 
fatal: Could not read from remote repository.

 

 这个是使用 “SSH的地址”clone会出现这个问题,如果是“HTTP的地址”就不会,就可以顺利clone到本地。

 

【解决办法】

 

(……一天之后,,查了很多都 don't work……bossW也说HTTP就可以,那就HTTP吧……)

尝试过:

1、修改win 10 的 hosts文件…… no  ( github报错connect to host github.com port 22: Connection timed out的解决:https://www.cnblogs.com/duhuo/p/4982375.html

2、也配置过用户名和邮箱…… no (git配置用户名和邮箱 :https://blog.csdn.net/xingbaozhen1210/article/details/80342212

3、( Git密钥生成步骤SSH Key 设置user name和user email :https://blog.csdn.net/Bel_Ami_n/article/details/91824885

4、尝试过:$ ssh -v gitlab.com

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM