问题:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

Posted suwyer

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了问题:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1相关的知识,希望对你有一定的参考价值。

在git clone 项目的时候, 竟然报错了:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

技术分享图片

那么,想要解决此问题, 则需要在用户目录下的 .ssh文件夹下新建一个 config 文件,添加:

  Host *

  KexAlgorithms +diffie-hellman-group1-sha1

  技术分享图片

然后,再重新执行 git clone :

       技术分享图片

至此, git clone 成功, 问题解决!

 

以上是关于问题:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1的主要内容,如果未能解决你的问题,请参考以下文章

Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(

SSH登录时“no matching host key type found. Their offer: ssh-rsa,ssh-dss“的错误解决方法

Unable to negotiate with XXXX port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

mac系统idea开发工具git -push 报错:no matching host key type found. Their offer: ssh-dss

Unable to negotiate with xxxxport 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

INSTALL_FAILED_NO_MATCHING_ABIS