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