If you have a server that’s available over a network it’s generally a good idea to disable root access over ssh.
The reason for this, is that, scripts run attempting to access your server and these scripts use the root username to try and log in. A simple way to protect yourself is to simply disable root access via SSH.
In this video we will show you how to disable Root SSH access on CentOS 7 Linux.
We will first create a new user and then make sure that user can run commands with sudo permissions.
We will then disable the root account on CentOS 7.
Finally, we then test to make sure all is working as we expect before we exit the SSH session.
All the commands that you need to follow along can be found here:
If you have any questions please do comment below 🙂