此处引用网络工程 Stack Exchange。
我有一台 D-link 1510-28 交换机,正在尝试通过 SSH 连接。
尝试该命令后:
srajan@srajan-Virtual-Machine:~$ ssh [email protected]
Unable to negotiate with 10.82.64.5 port 22: no matching cipher found. Their offer: 3des-cbc,blowfish-cbc,twofish-cbc,twofish256-cbc,twofish192-cbc,twofish128-cbc,aes256-cbc,aes192-cbc,aes128-cbc,arcfour,cast128-cbc
我也尝试将其升级到最新的固件,但无济于事。在谷歌搜索后,我尝试使用这个
srajan@srajan-Virtual-Machine:ssh -c aes256-cbc [email protected]
Received disconnect from 10.82.64.5 port 22:3: Disconnected: Key exchange or Algorithm Negotiation failed
Disconnected from 10.82.64.5 port 22
正如 NE Stack Exchange 评论所建议的,我也尝试了此操作,但收到了同样的错误。
C:\Users\xyz>ssh -c aes256-cbc -oKexAlgorithms=+diffie-hellman-group1-sha1 [email protected]
Received disconnect from 10.82.64.5 port 22:3: Disconnected: Key exchange or Algorithm Negotiation failed
Disconnected from 10.82.64.5 port 22
我已在此处附加完整的调试日志,因为该网站将其视为垃圾邮件。 完整调试日志
编辑:第二条命令可以找到详细日志这里。
请帮忙。
答案1
我通过将交换机上的 RSA 密钥长度从 768 位更改为 2048 位主机密钥解决了这个问题。此后错误不再出现!