Ssh

無法通過 SSH 連接到交換機:密鑰交換或算法協商失敗暫停

  • February 18, 2019

此處由網路工程堆棧交換引用。

我正在嘗試通過 SSH 連接到的 D-link 1510-28 交換機。

嘗試命令後:

srajan@srajan-Virtual-Machine:~$ ssh admin@10.82.64.5
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

我也嘗試將其升級到可用的最新韌體,但無濟於事。Google搜尋後,我嘗試使用這個

srajan@srajan-Virtual-Machine:ssh -c aes256-cbc admin@10.82.64.5
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 admin@10.82.64.5
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

我已在此處附上完整的調試日誌,因為該站點將其視為垃圾郵件。 完整的調試日誌

編輯:第二個命令詳細日誌可以在這裡找到。

請幫忙。

我能夠通過將交換機上的 RSA 密鑰長度從 768 位更改為 2048 位主機密鑰來解決它。在此之後錯誤停止出現!

引用自:https://serverfault.com/questions/954244