Users are able to directly log in as the "root" account, providing they supply the correct password.
The default setting in some versions of openSSH for "PermitRootLogin" is "yes"
1 - Modify the "PermitRootLogin" parameter in the relevant SSH config file.
/etc/ssh/sshd_config
Set:
PermitRootLogin no
or,
PermitRootLogin without-password
(to leave public-key root access enabled, not supported in all SSH versions )
2 - Then restart the SSH daemon:
/etc/init.d/sshd restart
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center