Cisco路由器登陆的时候报了这样一个错误:
Unable to negotiate with legacyhost: no matching key exchange method found.Their offer: diffie-hellman-group1-sha1
解决办法:
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 user@legacyhost
为了方便,可以在~/.ssh文件夹下新建config文件,内容如下
Host somehost.example.org
KexAlgorithms +diffie-hellman-group1-sha1
版权声明:本文为jamousontheway原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。