RHEL8: How to be able to connect using ssh to devices that have a RSA key generated with less than 1024 bits
Issue
-
Trying to connect to legacy network devices (e.g. switches) that use a RSA key with lower than 1024 bits fails from RHEL8
sshclients$ 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.