Troubleshooting

An administrator connects from a hardened Linux workstation to an old network appliance by SSH and gets "Unable to negotiate: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1." The appliance cannot be upgraded for several months. What is the BEST way to connect while limiting the security impact?

Show the answer

Correct answerB. Add a Host entry for the appliance in ~/.ssh/config that appends the legacy key exchange algorithm

The failure is a key exchange (KEX) algorithm mismatch, and a per-host KexAlgorithms override enables the weak algorithm only for that device. The system-wide LEGACY policy would weaken every connection. Clearing known_hosts or disabling host key checking does not affect key exchange negotiation.