解决:no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zombres/article/details/80930402

今天一个新同事入职,第一次使用gerrit时出现一下错误:

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

经过一趟折腾,如下解决:

# 进入~/.ssh,修改config文件,如果config没有就创建一个,加入以下内容
Host *
    KexAlgorithms +diffie-hellman-group1-sha1

猜你喜欢

转载自blog.csdn.net/zombres/article/details/80930402
今日推荐