fatal: unable to access 'https://github.com/xx

2019-03-14 19:15发布

问题:

When l try to use git push, an error reports:

Fatal: fatal: unable to access 'https://github.com/xxx': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

My git version is 2.16.2 for windows

It worked well before this day, and reinstalling git seems to not work.

Can anyone help me with that? Thanks in advance!

回答1:

If you are behind a proxy, try the following:

git config --global --add remote.origin.proxy ""


回答2:

After reinstalling Git did nothing, I found an issue on GitHub that helped me solve it.

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.



标签: git ssl github