致命:无法访问“.....":gnutls_handshake()失败:握手失败 [英] fatal: unable to access ".....": gnutls_handshake() failed: Handshake failed

查看:23
本文介绍了致命:无法访问“.....":gnutls_handshake()失败:握手失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

过去几个月我一直在使用 Git.最近,当我尝试克隆或推送时,我不断收到此错误.我在互联网上进行了研究,但到目前为止,没有任何解决方案对我有用.有人有想法吗?

I've been using Git for the past few months. Recently when I try to clone or to push, I keep on getting this error. I've researched on the internet but so far no solution has worked for me. Does anyone have an idea?

外部说明:现在我搬到了另一个国家,它在我以前的地方工作得很好.Git 版本:2.11.0,操作系统:Debian GNU/Linux 9.11 (stretch)

External note : Now I moved to different country, it was working perfectly where I was before. Git Version : 2.11.0 , OS : Debian GNU/Linux 9.11 (stretch)

错误:

git push
fatal: unable to access 'https://**************/': gnutls_handshake() failed: Handshake failed

推荐答案

此错误意味着 Git 无法与您尝试使用的服务器建立安全连接.您的 Git 版本使用 GnuTLS 库来设置 TLS(加密)连接,但由于某种原因,设置过程失败.

This error means that Git cannot establish a secure connection to the server you're trying to use. Your version of Git uses the GnuTLS library to set up TLS (encrypted) connections, and for some reason that setup process is failing.

这可能有几个原因.一个是您的服务器(您没有提到的那个)正在使用一组不兼容的密码套件或 TLS 版本,并且没有可以选择的通用加密算法.也有可能有人通过 MITM 设备篡改了连接.

This could be for a couple of reasons. One is that your server (which one you haven't mentioned) is using an incompatible set of cipher suites or TLS versions, and there's no encryption algorithms in common that can be chosen. It's also possible that you have someone tampering with the connection via a MITM device.

您使用的 Git 和 GnuTLS 版本应该适用于大多数标准服务器.重新安装它不会有帮助.您可以尝试升级到较新版本的 Debian,或者您可以尝试使用 OpenSSL 针对 libcurl 版本自己构建 Git.您也可以只切换到基于 SSH 的远程,这将完全避免这种不兼容.

The version of Git and GnuTLS you're using should work just fine with most standard servers. Re-installing it won't help. You can try upgrading to a newer version of Debian, or you can try building Git yourself against a version of libcurl using OpenSSL. You can also just switch to SSH-based remotes, which will avoid this incompatibility altogether.

这篇关于致命:无法访问“.....":gnutls_handshake()失败:握手失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆