错误提示:
执行ssh -p 9999 cwm@gerrit2.soft.com
Unable to negotiate with 192.168.1.123 port 9999: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
解决办法
cd ~/.ssh/
新增文件config
文件内容为
Host *
KexAlgorithms +diffie-hellman-group1-sha1
再次执行ssh -p 9999 cwm@gerrit2.soft.com
提示成功
**** Welcome to Gerrit Code Review ****
Hi cwm, you have successfully connected over SSH.
Unfortunately, interactive shells are disabled.
To clone a hosted Git repository, use:
git clone ssh://cwm@gerrit2.soft.com:9999/REPOSITORY_NAME.git