其他分享
首页 > 其他分享> > Unable to negotiate with 192.168.XX.XX port XXXX: no matching key exchange method found.

Unable to negotiate with 192.168.XX.XX port XXXX: no matching key exchange method found.

作者:互联网

问题

Unable to negotiate with xx.xx.xx.xxx port 29418: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
fatal: 无法读取远程仓库。


解决方法

sudo vim ~/.ssh/config

添加:

1 host xx.xx.xx.xxx
2 port 29418
3 KexAlgorithms +diffie-hellman-group1-sha1
4 KexAlgorithms +diffie-hellman-group14-sha1

原因:

如果是fetch github这些平台的代码可以直接拉,但是如果是拉取自己搭建的git服务器代码就需要配置一下 .ssh/config,添加一下端口和相应信息

标签:sha1,hellman,group14,no,xx,XX,XXXX,diffie,port
来源: https://www.cnblogs.com/zjxcyr/p/15617938.html