红联Linux门户
Linux帮助

解决:no matching key exchange method found. Their offer: di

发布时间:2016-05-06 10:47:03来源:linux网站作者:junheart

升级到ubuntu-16.04后,发现git-review代码报错:

Could not connect to gerrit at ...


执行:

$ ssh -i ~/.ssh/id_rsa.pub -p 29418 192.168.1.101


报错:

Unable to negotiate with 192.168.1.101 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1


解决:修改~/.ssh/config,加入:

Host *
KexAlgorithms +diffie-hellman-group1-sha1


本文永久更新地址:http://www.linuxdiyf.com/linux/20380.html