2022年7月19日

ssh 連線錯誤:

今天在 Mint Linux 桌面系統使用 ssh 要連回去一台老 Linux ,出現錯誤: 

Unable to negotiate with 123.12.123.123 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

簡單說明,就是目的端的加密方式比較舊, client 端的比較新,所以無法建立正確的連線,所以只要在 client 時指定允許舊版的加密,就可以連線。

#ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 user@123.123.123.123

沒有留言: