How to disable root login in SSH
Certain SSH
server is configured to not allow root
login mainly due to security and audit reason. You can disallow root
login to your server with these simple steps;
-
Set
PermitRootLogin
tono
in/etc/ssh/sshd_config
PasswordAuthentication no
-
Reload or restart
SSH