错误分析:OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

HTTPS协议默认端口是443,上面报错的原因是:使用HTTPS协议访问 github.com 网站出现错误。出现这种情况往往不是网络掉线,而是某个配置出现问题。

首先,检查一下是否使用了代理。查看git代理的命令如下所示:

$ git config --global --get http.proxy
$ git config --global --get https.proxy

如果设置了代理,并且已经失效,则需要重置代理,毕竟很多第三方代理服务器并不是那么稳定,经常需要更换代理服务,命令如下所示:

$ git config --global --unset http.proxy
$ git config --global --unset https.proxy

最后,重新设Git的代理:

$ git config --global http.proxy '127.0.0.1:8000'
$ git config --global https.proxy '127.0.0.1:8000'

标签: none

[网站公告]-[2024年兼职介绍]


添加新评论