(转) ssh 登录旧设备的问题解决
ssh登录一些老旧设备,出现以下问题:
问题:Unable to negotiate with 192.168.xx.xx port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
解决:-oKexAlgorithms=+diffie-hellman-group1-sha1
问题:Unable to negotiate with 192.168.xx.xx port 22: no matching host key type found. Their offer: ssh-dss
解决:-oHostKeyAlgorithms=+ssh-dss
问题:Unable to negotiate with 192.168.xx.xx port 22: no matching cipher found. Their offer: 3des-cbc
解决:-oCiphers=+3des-cbc
最后命令是这样的:
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss -oCiphers=+3des-cbc user@192.168.xx.xx
转自:https://zhuanlan.zhihu.com/p/30840210