解决OpenSSL SSL_read: Connection was reset, errno 10054

解决OpenSSL SSL_read: Connection was reset, errno 10054

今天在使用Push命令时报了这个错

OpenSSL SSL_read: Connection was reset, errno 10054

报错原因:

OpenSSL SSL_read:连接已重置,错误号10054

字面意思:服务器的SSL证书灭有经过第三方机构的签署。

网上信息也有的说可能是网络不稳定,连接超时导致。

解决方法

第一种

git config --global https.sslVerify "false"

git config --global http.sslVerify "false"

# 刷新ip缓存
ipconfig /flushdns

第二种

git push报错:OpenSSL SSL_read: Connection was reset
问题描述
好久没有跟新github今天提交了一次发现报错了

fatal: unable to access ‘https://github.com/jlundo/demo.git/’: OpenSSL SSL_read: Connection was reset, errno 10054
问题分析
从报错中可以看出ssl 链接重置了

解决方法

1.查看git配置

 git config --global -l

2.检查环境变量

env|grep -i proxy

执行完上面两个命令,再次执行git push就成功了。

第三种

Failed to connect to github.com port 443 after 21058 ms: Timed out

(1)取消代理

git config --global --unset http.proxy

git config --global --unset https.proxy

(2)获得成功!

posted @ 2022-11-30 15:04  追D  阅读(2194)  评论(0)    收藏  举报