How to disable root login in linux
Login to shell.
Copy and paste below command to server using your favourite editor.
pico -w /etc/ssh/sshd_configFind the line
Protocol 2, 1Uncomment it and change it to look like
Protocol 2Next, find the line
#PermitRootLogin yesUn-comment it. It looks like
PermitRootLogin noSave the file Ctrl+X then Y then enter
Now restart the SSH service on server
/etc/rc.d/init.d/sshd restart