No matching key exchange method found

Linux Archssh
<p>To fix:</p> <pre><code>Unable to negotiate with x.x.x.x port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 </code></pre> <p>Add to ssh command:</p> <pre><code>oKexAlgorithms=+diffie-hellman-group1-sha1 </code></pre> <p>Or permanently add to .ssh/config</p> <pre><code>Host 123.123.123.123 KexAlgorithms +diffie-hellman-group1-sha1 </code></pre> <p>From: https://unix.stackexchange.com/questions/340844/how-to-enable-diffie-hellman-group1-sha1-key-exchange-on-debian-8-0/340853</p>

© 2026 Code0x378