Dropbear ssh client error no matching algo kex

Published by

Posted on March 25, 2015

Using Tiny Core linux I ran into a weird error trying to ssh to one of my servers.

Error: no matching algo kex

Found a forum that mention adding the below to the server sshd_config file
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1.

Server side log error
sshd[3576]: fatal: Unable to negotiate a key exchange method [preauth]

After about a hour I found only needed
KexAlgorithms diffie-hellman-group1-sha1