解决: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.

猜你喜欢

转载自blog.csdn.net/zhangjin1120/article/details/120973405
今日推荐