gerrit下载代码
git clone ssh://queen@172.31.119.41: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文件。