gerrit升級到16.04之後連接不到服務器

轉自http://www.cnblogs.com/teamoxin/p/5728705.html

升級到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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章