I want to enable root login at the console only, and disable root login via SSH.
However other users can still SSH to the server (Ubuntu 14) and even sudo if there part of the sudoers group.
I have the sudo bit sorted, just not sure how to restrict root to console login only.
Many thanks
In
/etc/ssh/sshd_config
, setPermitRootLogin
toand restart the sshd daemon:
Add this to
/etc/ssh/sshd_config