Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

openssl

I used git "push" and "pull" commands with success till yesterday, but today it is not working and give me this error: Push failed: Unable to access 'https://github.com/username/repository.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

I tried many solutions but no success. Solutions I tried:
1. Using SSH key
2. Updating git
3. Installing curl with openssl (same error while installing)

This is the result of curl github.com -v:

* Rebuilt URL to: github.com/
*   Trying 192.30.253.112...
* TCP_NODELAY set
* Connected to github.com (127.0.0.1) port 80 (#0)
> GET / HTTP/1.1
> Host: github.com
> User-Agent: curl/7.54.0
> Accept: */*
> 
* Recv failure: Connection reset by peer
* stopped the pause stream!
* Closing connection 0
curl: (56) Recv failure: Connection reset by peer
like image 563
Esmatullah Arifi Avatar asked Oct 10 '18 04:10

Esmatullah Arifi


4 Answers

The problem was solved by restarting my computer.

Update:
Kaspersky Internet Security/Antivirus causes the problem and disabling/removing it fixes the issue for most users.

like image 79
Esmatullah Arifi Avatar answered Oct 09 '22 18:10

Esmatullah Arifi


I encountered the same problem, by restarting my Mac, i could push my code to Github and the error message was gone.

like image 34
Merouane T. Avatar answered Oct 09 '22 17:10

Merouane T.


We started an investigation internally and we discovered that in our case was a problem with Kaspersky antivirus.

We raised a bug for their support, waited, waited, got feedback that would be solved some months ago in a new release. We got and tried the release, the problem was still there. We raised again another ticket, a lot of debugging information/files they requested. Still not solved.

We gave up and moved to Avast, no problems so far.

like image 3
Rodrigo Farias Rezino Avatar answered Oct 09 '22 17:10

Rodrigo Farias Rezino


As commented in libressl-portable/portable/issue 369

I update with brew, libressl, openssl and curl and reboot my machine. It's now working.

Note that SSH should work, but for that you need to change your origin URL

git remote set-url origin [email protected]:aUser/aProject

That would not use HTTPS at all then.

like image 1
VonC Avatar answered Oct 09 '22 16:10

VonC