I want to prevent the root user from logging in directly from local console on a RHEL box, but allow login from ssh. Can this be done?
Thanks…
loginredhatroot
I want to prevent the root user from logging in directly from local console on a RHEL box, but allow login from ssh. Can this be done?
Thanks…
Best Answer
Yes.
~/root/.ssh/authorized_keys
./etc/ssh/sshd.conf
- SetPermitRootLogin
towithout-password
*
,x
, etc.)Notes: