简体   繁体   English

致命:无法访问“https://github.com/xxx”:LibreSSL SSL_connect: SSL_ERROR_SYSCALL 连接到 github.com:443

[英]fatal: unable to access 'https://github.com/xxx': 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我使用 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 tried many solutions but no success.我尝试了很多解决方案,但没有成功。 Solutions I tried:我尝试过的解决方案:
1. Using SSH key 1.使用SSH钥匙
2. Updating git 2.更新git
3. Installing curl with openssl (same error while installing) 3.用openssl安装curl(安装同样报错)

This is the result of curl github.com -v :这是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.问题是通过重新启动我的计算机解决的。

Update:更新:
Kaspersky Internet Security/Antivirus causes the problem and disabling/removing it fixes the issue for most users. Kaspersky Internet Security/Antivirus 会导致问题,禁用/删除它可以解决大多数用户的问题。

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.我们放弃并转向 Avast,到目前为止没有任何问题。

As commented in libressl-portable/portable/issue 369正如libressl-portable/portable/issue 369 中所述

I update with brew, libressl, openssl and curl and reboot my machine.我使用 brew、libressl、openssl 和 curl 进行更新,然后重新启动我的机器。 It's now working.它现在正在工作。

Note that SSH should work, but for that you need to change your origin URL请注意,SSH 应该可以工作,但为此您需要更改源 URL

git remote set-url origin git@github.com:aUser/aProject

That would not use HTTPS at all then.那根本就不会使用 HTTPS。

我遇到了同样的问题,通过重新启动我的 Mac,我可以将我的代码推送到 Github 并且错误消息消失了。

Most likely a issue with you network connection.很可能是您的网络连接问题。 Try to clone the repo using git command and check if that's successful.尝试使用 git 命令克隆 repo 并检查是否成功。

eg:例如:

git clone https://github.com/firebase/firebase-ios-sdk.git

Try export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;尝试export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087; if you are using a proxy (Change the value for your own need).如果您使用代理(根据您自己的需要更改值)。

In my case, the new git repo is just created and I do push some code and then get this issue.就我而言,新的 git repo 刚刚创建,我确实推送了一些代码,然后遇到了这个问题。 I try to run git pull first and run git push after that.我尝试先运行git pull然后再运行git push Then everything works well, didn't get the root cause.然后一切正常,没有找到根本原因。 Operation: macOS Monterey操作:macOS Monterey

Try to use brew mirror site(s) instead of Github.尝试使用 brew 镜像站点而不是 Github。

For example, I am in China and I constantly fail to visit Github with that error, but I know some brew mirror site like https://mirror.tuna.tsinghua.edu.cn/help/homebrew/例如,我在中国,经常无法访问 Github 并出现该错误,但我知道一些 brew 镜像站点,例如https://mirror.tuna.tsinghua.edu.cn/help/homebrew/

So I raised an issue against brew Provide an easy way to change homebrew's origins.所以我提出了一个反对 brew 的问题提供一种简单的方法来改变自制软件的起源。 They fixed it in 2.3 , so set mirror like these,他们在 2.3 中修复了它,所以像这样设置镜像,

export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git"
export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git"
export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"

I had similar issue, The issue was with vpn Disabling vpn worked for me hope this will be helpful我有类似的问题,问题在于 vpn 禁用 vpn 对我有用,希望这会有所帮助

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SSL_connect:SSL_ERROR_SYSCALL 连接到 github.com:443 - SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 无法访问“https://github.com/Homebrew/brew/”:LibreSSL SSL_connect - Unable to access 'https://github.com/Homebrew/brew/': LibreSSL SSL_connect OpenSSL SSL_connect:连接被重置连接到 github.com:443 同时尝试 git 推送 - OpenSSL SSL_connect: Connection was reset in connection to github.com:443 while try to git push 无法访问'https://github.com/AFNetworking/AFNetworking.git/':与github.com:9847相关的未知SSL协议错误 - unable to access 'https://github.com/AFNetworking/AFNetworking.git/': Unknown SSL protocol error in connection to github.com:-9847 LibreSSL SSL_connect:连接到 bitbucket.org:443 的 SSL_ERROR_SYSCALL - LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to bitbucket.org:443 curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL 连接到 storage.googleapis.com:443 - curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to storage.googleapis.com:443 OpenSSL SSL_connect:SSL_ERROR_SYSCALL 连接到 gitlab.com:443 - OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to gitlab.com:443 Git Push失败:致命:无法访问与github.com有关的未知SSL协议错误:-9805 - Git Push failed: fatal: unable to access Unknown SSL protocol error in connection to github.com:-9805 无法访问“ https://github.com/GladysProject/gladys/”:无法连接到github.com端口443:无主机路径 - unable to access 'https://github.com/GladysProject/gladys/': Failed to connect to github.com port 443: no route to host fatal: unable to access 'https://dev.azure.com/xxx': OpenSSL SSL_connect: Connection was reset in connection to dev.azure.com:443 - fatal: unable to access 'https://dev.azure.com/xxx': OpenSSL SSL_connect: Connection was reset in connection to dev.azure.com:443
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM