RHEL8: How to be able to connect using ssh to devices that have a RSA key generated with less than 1024 bits

Solution Verified - Updated -

Issue

  • Trying to connect to legacy network devices (e.g. switches) that use a RSA key with lower than 1024 bits fails from RHEL8 ssh clients

    $ ssh my-appliance
    ssh_dispatch_run_fatal: Connection to XX.XX.XX.XX port 22: Invalid key length
    

Environment

  • Red Hat Enterprise Linux (RHEL) 8 and later
    • openssh

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