no matching key exchange method found issue for Ubuntu ssh
Sep 6, 2018 · 1 min read
Add the address and the algorithm in the ~/.ssh/config file:
Host somehost.example.org
KexAlgorithms +diffie-hellman-group1-sha1Wild card may be used for the address.
e.g.
Host *.*.*
$ cat ~/.ssh/config
Host 10.*.*.*
KexAlgorithms +diffie-hellman-group1-sha1
Host 192.*.*.*
KexAlgorithms +diffie-hellman-group1-sha1