(转) ssh 登录旧设备的问题解决

声明:内容源自网络,版权归原作者所有。若有侵权请在网页聊天中联系我

因为家里有一个MT7688需要ssh进入,但出现错误提示:

Unable to negotiate with 192.168.100.109 port 22: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,kexguess2@matt.ucc.asn.au

看类似的解决方法

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

然后我用类似指令就可以了。