在使用 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