红联Linux门户
Linux帮助

gerrit升级到ubuntu16.04之后连接不到服务器

发布时间:2016-08-02 14:56:38来源:linux网站作者:teamoblogs
升级到ubuntu-16.04后,发现Git-review代码报错:
Unable to negotiate with 10.140.110.77 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ssh -p 29418 username@seaver_addr
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/22934.html