Unable to negotiate with no matching key exchange method found. diffie-hellman-group1-sha1 fatal:

gerrit下载代码

                     git clone ssh://[email protected]:29418/NBD1_datasystem

出现错误:

Unable to negotiate with 172.31.119.41 port 29418: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1fatal: 无法读取远程仓库。

请确认您有正确的访问权限并且仓库存在。

为解决这个问题:可以在 ~/.ssh/config  文件加入:

                     Host *.*.*.*
                                   KexAlgorithms +diffie-hellman-group1-sha1

如果没有~/.ssh/config文件,在该文件夹中创建config文件。

你可能感兴趣的:(Unable to negotiate with no matching key exchange method found. diffie-hellman-group1-sha1 fatal:)