How to enable 'diffie-hellman-group1-sha1' on RHEL 9?
Issue
-
How to enable support for 'diffie-hellman-group1-sha1' so that RHEL8 and earlier ssh clients can connect using 'diffie-hellman-group1-sha1' key exchange algorithm ?
-
How to fix the issue reported for no matching key exchange method found on RHEL9 ?
Oct 7 20:05:01 node1.example.com sshd[157274]: Unable to negotiate with client-ip [x.x.x.x] port 33580: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 [preauth] Oct 7 20:05:01 node1.example.com sshd[157278]: Unable to negotiate with client-ip [x.x.x.x] port 51923: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1 [preauth]
Environment
- Red Hat Enterprise Linux 9.0
- diffie-hellman-group1-sha1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.