问题: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 成功, 问题解决!

 

文章来自:https://www.cnblogs.com/suwyer/p/9256102.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3