一切都很好,但突然间,我发现了一个错误:
致命:无法访问'名称./‘:gnutls_handshake()失败:握手失败
我在我的电脑上得到了这个,以及一个EC2实例。当我在另一台电脑上试用时,它在那里工作得很好。
我尝试过许多解决方案,从Stackoverflow和其他论坛。但什么都没用!
在计算机上,os是Linux 17,在EC2实例上是Ubuntu14.04.6LTS。
什么是问题,我应该做些什么来解决这个问题?
发布于 2020-09-18 06:00:04
最快的解决方案是使用SSH而不是HTTPS。我试着用其他方法来解决这个问题,但没有奏效。
下面是从SSH替换HTTPS的步骤
发布于 2020-09-10 13:18:07
在Ubuntu14.04服务器上遇到相同问题,发现在2020年8月24日,bitbucket.org更改为不再允许旧密码,请参阅https://bitbucket.org/blog/update-to-supported-cipher-suites-in-bitbucket-cloud
这会影响https:// bitbucket的连接,但不会影响ssh连接,所以对我来说最快的解决方案是向bitbucket添加ssh键,然后将远程从https更改为ssh。
更改从这里中找到的遥控器的步骤本质上是:
# Find the current remote
git remote -v
origin https://user@bitbucket.org/reponame.git (fetch)
origin https://user@bitbucket.org/reponame.git (push)
# Change the remote to ssh
git remote set-url origin git@bitbucket.org:reponame.git
# Check the remote again to make sure it changed
git remote -v在https://community.atlassian.com/t5/Bitbucket-questions/fatal-unable-to-access-https-bitbucket-org-gnutls-handshake/qaq-p/1468075的亚特兰座论坛上有更多关于这个问题的讨论。
发布于 2020-09-24 14:59:48
sudo bash
mkdir upgrade
cd upgrade
wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
tar xpvfz openssl-1.1.1g.tar.gz
cd openssl-1.1.1g
./Configure
make ; make install
cd ..
wget https://curl.haxx.se/download/curl-7.72.0.tar.gz
tar xpvfz curl-7.72.0.tar.gz
cd curl.7.72.0
./configure --with-ssl=/usr/local/ssl
make ; make install
cd ..
git clone https://github.com/git/git
cd git
vi Makefile, change prefix= line to /usr instead of home
make ; make installhttps://stackoverflow.com/questions/63789181
复制相似问题