How to Disable ssh-rsa Algorithm in Red Hat Enterprise Linux 9 for Enhanced SSH Security
Issue
-
Securityscans have reported thedeprecatedssh-rsa host keyalgorithmin use onRed Hat Enterprise Linux9 servers. -
Running an
nmapscan revealsssh-rsalisted among supported algorithms:# nmap --script ssh2-enum-algos -sV -p 22 127.0.0.1 | server_host_key_algorithms: (5) | rsa-sha2-512 | rsa-sha2-256 | ssh-rsa <----- | ecdsa-sha2-nistp256 | ssh-ed25519
Environment
- Red Hat Enterprise Linux 9
- OpenSSH
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.