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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM