GITHUB 在git clone时出错,提示“Connection reset by XX.XXX.XXX.XXX port 22. fatal: Could not read from remote repository.”
在从github上clone工程时失败
现象:
- 使用HTTP的方法,失败提示为:
“fatal: unable to access
‘https://github.com/xxx/xxx.git/’: OpenSSL was built without SSLv3
support” - 使用SSH的方法,失败提示为:
“Connection reset by XX.XXX.XXX.XXX port 22 fatal:
Could not read from remote repository.”
失败尝试:
以下是我尝试过无效的方法,但有些情况用了这些方法也许有效,现列出如下:
- 忽略SSL Verification
git config http.sslVerify “false” - 重新生成 SSH Keys
- .ssh -p 222 用户名@服务端ip或ssh -l 222 用户名@服务端ip
- 设置代理
socks5:
git config --global http.proxy ‘socks5://127.0.0.1:1080’
git config --global https.proxy ‘socks5