Unable to negotiate with [IP] port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

If you ever encounter this error, add the line

KexAlgorithms=+diffie-hellman-group1-sha1

at the end of your /etc/ssh/ssh_config file.

Bonus: One-Liner for the impatient

sudo echo “KexAlgorithms=+diffie-hellman-group1-sha1” >> /etc/ssh/ssh_config

 

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.