How to disable root access — Ubuntu
To add another layer of security on your Ubuntu server, we have to disable root access to avoid your server exposed to a brute force attack. Before doing this, first you should have a sudo user account. Disabling the root access: sudo nano /etc/ssh/sshd_config Change PermitRootLogin from yes to no: PermitRootLogin no Now save the …