【解决】ssh远程报错
2023年02月09日 05:23:02 作者:Jiaozn 分类:Linux 评论(0)ssh root@192.168.0.235
Unable to negotiate with 192.168.0.235 port 22: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
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
评论
发表评论