首页 > 其他 > 详细

【Github Push】解决 OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

时间:2021-09-07 15:20:19      阅读:10      评论:0      收藏:0      [点我收藏+]

老问题,新答案

问题:

  • fatal: unable to access ‘https://xxx@github.com/xxx/xxx.git/‘: The requested URL returned error: 403
  • OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

有Proxy的时候,会出现这个错误,网络上说:

git config --global --unset http.proxy
git config --global http.sslVerify false

我网络不行,我为啥要unset proxy?
ssl是HTTPS协议的内容,为啥不让校验?

目前我发现:
是因为本地仓库没有设置origin remote。

解决方案

  1. 检查 .gitconfig,是否有无效的Http.proxy, https.proxy
  2. 检查 git remote -v 是否添加了https的origin项目地址。
  3. git remote add origin https://github.com/slankka/xxxx.git

提示

  • 该走通道的走通道,根本没问题。
  • 别改 git@github.com这种协议,麻烦,还要走ssh协议,费劲。
  • 别改 https://username:password@github.com/,何必暴露自己密码呢,或者配置AccessToken不麻烦?

正确操作就是什么也别改,去检查凭据管理器

认证失败

  • 如果密码更换过,去Windows凭据管理器,更新https协议的git密码。
  • 再就是 git config --unset credential.helper或者 git config --system --unset credential.helper

【Github Push】解决 OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

原文:https://www.cnblogs.com/slankka/p/15237067.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!