git clone使用https协议报错OpenSSL SSL_read: Connection was reset, errno 10054

在使用git 下载github上的代码时, 一般有ssh协议和https协议两种。使用ssh协议可以成功clone代码, 但使用https协议时出错:

bash 复制代码
$ 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

报错原因其实是证书错误问题。

解决方法也很简单, 设置正确的证书或者忽略证书。 忽略证书的解决方法比较简单。

如下设置即可忽略证书,这个设置是临时的。

bash 复制代码
env GIT_SSL_NO_VERIFY=true
相关推荐
wh_xia_jun1 小时前
Git 分支合并操作备忘录
git
满天星83035773 小时前
【Git】原理及使用(三)(分支管理)
linux·git
运维有小邓@5 小时前
SSL证书有效期大幅缩短,企业如何做好自动化管理?
ssl
像风一样的男人@6 小时前
warning: could not find UI helper ‘git-credential-manager-ui‘
git·ui
代钦塔拉8 小时前
Git & GitHub 从入门到精通:全流程实战教程
git·github
晚风吹红霞9 小时前
Linux下的趣味编程 —— 进度条、Git版本控制与GDB调试实战
linux·运维·git
xlq223229 小时前
7.git
git
Ws_9 小时前
Git + Gerrit 第六课:commit --amend、Patch Set 与 Change-Id
git
信息安全失业大专人员1 天前
HTTP/HTTPS 协议精髓与 WAF(Web 应用防火墙)架构防线大底座
web安全·http·信息安全·https·企业信息安全
AIMath~1 天前
向github中上传文件过大超过50M怎么办
网络·git·github