【发布时间】:2021-02-05 11:28:39
【问题描述】:
当我尝试访问启用了 ssh 的路由器时,它会这样说:
Unable to negotiate with 101.16.16.2 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
为了解决这个问题,我可以执行以下命令强制ssh使用路由器使用的认证方式
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -c aes128-cbc -l <username> 10.10.10.5
有什么方法可以配置 ssh 以默认使用该身份验证。谢谢
【问题讨论】:
-
路由器本身不会关心 SSH 身份验证;它只会根据其路由表将数据包传递到下一个主机。您似乎在某处使用了
ProxyCommand选项。