Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

github

ssl

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!

like image 595
Rosmee Avatar asked Mar 18 '18 07:03

Rosmee


3 Answers

If you are behind a proxy, try the following:

git config --global --add remote.origin.proxy ""
like image 163
mahesh adepu Avatar answered Oct 12 '22 15:10

mahesh adepu


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.

like image 39
Mirza Sisic Avatar answered Oct 12 '22 15:10

Mirza Sisic


Opening a new terminal session worked for me

like image 25
Omar Avatar answered Oct 12 '22 14:10

Omar