CentOs - How to Disable or Not Allow root ssh Login

How to disable or not allow root ssh login.

It is always wise not to allow root login because common brute-force attack is using username root.

Open this configuration file:
/etc/ssh/sshd_config

Change the line as shown below:
PermitRootLogin no

Comments