git 致命:无法访问“https://github.com/xxx”:OpenSSL SSL_connect:连接到 github.com:443 的 SSL_ERROR_SYSCALL
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/49345357/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
fatal: unable to access 'https://github.com/xxx': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
提问by Rosmee
When l try to use git push
, an error reports:
当我尝试使用时git push
,错误报告:
Fatal: fatal: unable to access 'https://github.com/xxx': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
致命:致命:无法访问“ https://github.com/xxx”:OpenSSLSSL_connect:连接到 github.com:443 的 SSL_ERROR_SYSCALL
My git version is 2.16.2 for windows
我的 git 版本是 2.16.2 for windows
It worked well before this day, and reinstalling git seems to not work.
在这一天之前它运行良好,重新安装 git 似乎不起作用。
Can anyone help me with that? Thanks in advance!
任何人都可以帮助我吗?提前致谢!
回答by mahesh adepu
If you are behind a proxy, try the following:
如果您使用代理,请尝试以下操作:
git config --global --add remote.origin.proxy ""
回答by Mirza Sisic
After reinstalling Git did nothing, I found an issue on GitHubthat helped me solve it.
重新安装 Git 后什么也没做,我在 GitHub 上发现了一个问题,帮助我解决了它。
In your terminal run this command first:
在您的终端中首先运行此命令:
git config --global http.sslBackend "openssl"
Then this one:
然后这个:
git config --global http.sslCAInfo "C:\Program Files\Git\mingw64\ssl\cert.pem"
You may need to change your path depending on where you have it installed.
您可能需要根据安装位置更改路径。
回答by Omar
Opening a new terminal session worked for me
打开一个新的终端会话对我有用
回答by The OuterSpace
if your using proxy try to go to run and enter inetcpl.cpl then connections then Lan settings then advance and now you see your proxy, use the http one.
如果您使用代理尝试运行并输入 inetcpl.cpl 然后连接然后 LAN 设置然后前进 现在您看到您的代理,请使用 http 一个。
then open Git Bash then enter this command
然后打开 Git Bash 然后输入这个命令
$ git config --global http.proxy
if theres no output of it then the proxy in Git Bash is not setthen set it with these command and use proxy and port shown in the 1st paragraph
如果没有输出,则未设置 Git Bash 中的代理,然后使用这些命令设置它并使用第一段中显示的代理和端口
$ git config --global http.proxy proxyaddress:port
then enter this command again
然后再次输入此命令
$ git config --global http.proxy
and there you go it is set
你去吧,它已经设置好了
to reset the proxy on Git Bash just enter this command
要在 Git Bash 上重置代理,只需输入此命令
$ git config --global --unset http.proxy
i was also having these problem lately i was using psiphon vpn on desktop as a newbie it was also hard to find this solution glad i could help. :)
我最近也遇到了这些问题,我作为新手在台式机上使用 psiphon vpn 也很难找到这个解决方案,很高兴我能提供帮助。:)
回答by Marcelo Fernandes
I solved this same problem changing the git url in 'clone' step - use SSH instead of HTTPS link.
我解决了同样的问题,在“克隆”步骤中更改了 git url - 使用 SSH 而不是 HTTPS 链接。
回答by Ashish
I recently installed git 2.24.1 and not sure what changes I made, but it was not allowing me to clone
or push
without admin account on my machine.
我最近安装了 git 2.24.1 并且不确定我做了什么更改,但它不允许我在我的机器上clone
或push
没有管理员帐户。
This solved my issue:
这解决了我的问题:
In your terminal run this command first:
git config --global http.sslBackend "openssl"
Then this one:
git config --global http.sslCAInfo "C:\Program Files\Git\mingw64\ssl\cert.pem"
在您的终端中首先运行此命令:
git config --global http.sslBackend "openssl"
然后这个:
git config --global http.sslCAInfo "C:\Program Files\Git\mingw64\ssl\cert.pem"
回答by Daisy
restarted my mac, then can do git push
重新启动我的 mac,然后可以执行 git push
回答by Pranav Totla
Sometimes, it can be simply because your system was unable to connect to GitHub, possibly because you were not connected to the Internet (or you had a lousy connection).
有时,这可能仅仅是因为您的系统无法连接到 GitHub,可能是因为您没有连接到 Internet(或者您的连接很糟糕)。
(It's true - this problem can be reproduced. Just disconnect your LAN/WiFi and then do git pull
, you will get the same error).
(这是真的 - 这个问题可以重现。只需断开您的 LAN/WiFi,然后执行git pull
,您将得到相同的错误)。
PS: This happened with me. Sometimes the problem is your internet connection rather than configs.
PS:这发生在我身上。有时问题是您的互联网连接而不是配置。