解决:fatal: unable to access... OpenSSL SSL_read: Connection was reset, errno 10054

Posted zhangjin1120

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决:fatal: unable to access... OpenSSL SSL_read: Connection was reset, errno 10054相关的知识,希望对你有一定的参考价值。

向github push代码报错如下:

fatal: unable to access 'https://github.com/projectXX.git': OpenSSL SSL_read: Connection was reset, errno 10054

 解决办法:检查本地账户和github账户是否一致,如果不一致,要切换本地账户。详细步骤参考:Git如何切换账户

再次push代码,又报错:

Push failed Unable to access 'https://github.com/projectXX.git/': Failed to connect to github.com port 443 after 21066 ms: Timed out

 连接超时了,解决办法:先弄清楚自己VPN的ip和端口号。然后给Git设置代理。具体操作步骤参考:Failed to connect to github.com port 443: Timed out

再次push代码,又报错了:

 Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.

  解决办法:生成新的token,然后用新的token登录github。详细步骤参考:github开发人员在七夕搞事情:remote: Support for password authentication was removed on August 13, 2021.

以上是关于解决:fatal: unable to access... OpenSSL SSL_read: Connection was reset, errno 10054的主要内容,如果未能解决你的问题,请参考以下文章

解决PyCharm上传代码到Github出现push failed: unable to acces

git clone报错:fatal: unable to access ‘‘: SSL certificate problem: unable to get local issuer cer

git clone报错:fatal: unable to access ‘‘: SSL certificate problem: unable to get local issuer cer

解决:fatal: unable to access... OpenSSL SSL_read: Connection was reset, errno 10054

使用 git clone 的时候出现 fatal: Unable to find remote helper for 'https' 解决办法

git clone 时出现fatal:unable to access 如下情况报错及解决办法