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到远程仓库。
仅记录弯路
本文记录了在使用Git从GitHub拉取代码时遇到的OpenSSLSSL_read:Connectionwasreset,errno10054错误,并提供了两种解决方案:一是解决网络问题;二是更换SSH链接并验证主机。
3万+

被折叠的 条评论
为什么被折叠?



