Cisco路由器登陆失败: Their offer diffie-hellman-group1-sha1

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

你可能感兴趣的:(Cisco路由器登陆失败: Their offer diffie-hellman-group1-sha1)