OpenSSL SSL_read: Connection was reset, errno 10054

本文记录了在使用Git从GitHub拉取代码时遇到的OpenSSLSSL_read:Connectionwasreset,errno10054错误,并提供了两种解决方案:一是解决网络问题;二是更换SSH链接并验证主机。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1、 git remote add origin https://github.com/piggy1024/learnAlgTest.git 简历远程连接之后,git pull拉取代码报错如下:
fatal: unable to access ‘https://github.com/piggy1024/learnAlgTest.git/’: OpenSSL SSL_read: Connection was reset, errno 10054

2、先ping github.com 判断是不是网络的问题
在这里插入图片描述
个人是出现网络了问题,参照下面链接文章解决
https://www.cnblogs.com/yanch01/p/GitHub-access.html

3、解决网络问题再pull依旧报错OpenSSL SSL_read: Connection was reset, errno 10054

4、重新使用ssh的链接(git@github.com:piggy1024/learnAlgorithm.git)进行git init ,不使用https(https://github.com/piggy1024/learnAlgorithm.git)
git remote add origin git@github.com:piggy1024/learnAlgorithm.git之后再
git pull 报错如下

The authenticity of host ‘github.com (140.82.113.3)’ can’t be established.
ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])?

解决方法:
直接输入yes回车即可以pull下代码,再将本地代码push到远程仓库。

仅记录弯路

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值