How to apply a specific crypto policy to RHEL 9 ssh client to connect to legacy systems?

Solution Unverified - Updated -

Issue

  • How to ssh from RHEL 9 to legacy systems without setting system wide crypto policy to 'LEGACY'?
  • Error no matching key exchange method found. Their offer: diffie-hellman-group1-sha1
  • Error no matching host key type found. Their offer: ssh-rsa,ssh-dss
  • Error ssh_dispatch_run_fatal: Connection to 10.0.0.100 port 22: error in libcrypto

Environment

  • Red Hat Enterprise Linux 9

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content