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_config
Find the line
Protocol 2, 1
Uncomment it and change it to look like
Next, find the line
Un-comment it. It looks like
Save the file Ctrl+X then Y then enter
Now restart the SSH service on server