致命:无法访问'https://github.com/xxx':LibreSSL SSL_connect:SSL_ERROR_SYSCALL与github.com的连接:443

致命:无法访问'https://github.com/xxx':LibreSSL SSL_connect:SSL_ERROR_SYSCALL与github.com的连接:443

问题描述:

直到昨天,我一直使用git"push"和"pull"命令成功,但是今天它不能正常工作,并给我这个错误:Push failed: Unable to access 'https://github.com/username/repository.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

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

我尝试了许多解决方案,但没有成功. 我尝试过的解决方案:
1.使用SSH密钥
2.更新git
3.使用openssl安装curl(安装时出现相同错误)

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)

这是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

问题是通过重新启动计算机来解决的.

The problem was solved by restarting my computer.