How do I prevent root from logging in via ssh?
-
Edit the file
/etc/ssh/sshd_configPermitRootLogin=noUser's may still login to the system with another account and become root by using
suorsudo. A log will be kept in/var/log/securelisting the the username of the user that performed this action.
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
