Linux中ssh登录旧设备的方法

最近运维中通过跳板机链接其他linux设备出现了一些问题解决方案做一些总结

问题1

Unable to negotiate with 192.168.xx.xx port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

解决方案

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1

问题2

Unable to negotiate with 192.168.xx.xx port 22: no matching host key type found. Their offer: ssh-dss

解决方案

ssh -oHostKeyAlgorithms=+ssh-dss

问题3

Unable to negotiate with 192.168.xx.xx port 22: no matching cipher found. Their offer: 3des-cbc

解决方案

ssh -oCiphers=+3des-cbc

完整命令如下:

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss -oCiphers=+3des-cbc user@192.168.xx.xx

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部