ssh client不支援舊版加密解法

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss -l root  x.x.x.x 

請視情況(錯誤訊息), 更改演算法與支援的key

錯誤訊息通常為:

Unable to negotiate with 10.192.130.232 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
Unable to negotiate with 10.192.130.232 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

發表迴響