How to disable root log in via ssh in RHEL 9/10
Issue
- We can not disable ssh for root even with
PermitRootLogin noin/etc/ssh/sshd_configfile. - We can not allow ssh root log in for security reason.
Environment
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 10
- openssh-server
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.