$ vim /etc/ssh/sshd_config # Find line 'PermitRootLogin' and set it to 'no' PermitRootLogin no # Restart SSH server $ systemctl restart sshd