root linux 

How to disable root access in linux

Login as root

and create a new user

useradd yourusername

to set the password use

passwd yourusername

and type the password you want to use to login

and go to

vi /etc/ssh/sshd_config

and find this line

PermitRootLogin no

set to no if it is yes

and find the line

AllowUsers yournamehere

and restart

service sshd restart in Centos/Fedora


service ssh restart in Debian/Ubuntu