ssh Errors: no matching key exchange method found

 

no matching key exchange method found

* Error message:

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

* Find ssh client supportd key exchange algorithms:

ssh -Q kex
 
diffie-hellman-group1-sha1
...

* Solutioin:
– add to .ssh/config file:

Host x.x.x.x
        KexAlgorithms +diffie-hellman-group1-sha1

no matching cipher found

* Error message:

Unable to negotiate with x.x.x.x port 22: no matching cipher found. Their offer: twofish256-cbc,twofish-cbc,twofish128-cbc,blowfish-cbc,3des-cbc,arcfour,cast128-cbc,aes256-cbc,aes128-cbc
ssh -Q cipher
...
aes256-cbc
...

* Solutioin:
– add to .ssh/config file:

Host x.x.x.x
        Ciphers aes256-cbc

References

* OpenSSH Legacy Options

This entry was posted in ssh and tagged , , . Bookmark the permalink.