在使用git 下載github上的代碼時(shí), 一般有ssh協(xié)議和https協(xié)議兩種。使用ssh協(xié)議可以成功clone代碼, 但使用https協(xié)議時(shí)出錯(cuò):
$ git clone https://github.com/openai/improved-diffusion.git
Cloning into 'improved-diffusion'...
fatal: unable to access 'https://github.com/openai/improved-diffusion.git/': OpenSSL SSL_read: Connection was reset, errno 10054
報(bào)錯(cuò)原因其實(shí)是證書錯(cuò)誤問題。
解決方法也很簡單, 設(shè)置正確的證書或者忽略證書。 忽略證書的解決方法比較簡單。文章來源:http://www.zghlxwxcb.cn/news/detail-652368.html
如下設(shè)置即可忽略證書,這個(gè)設(shè)置是臨時(shí)的。文章來源地址http://www.zghlxwxcb.cn/news/detail-652368.html
env GIT_SSL_NO_VERIFY=true
到了這里,關(guān)于git clone使用https協(xié)議報(bào)錯(cuò)OpenSSL SSL_read: Connection was reset, errno 10054的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!