Edit the file /etc/ssh/sshd_config
Next locate this line “PermitRootLogin yes” by entering this on your vi or vim editor
:/PermitRootLogin yes
and change it to this:
PermitRootLogin no
and save the file
then
/etc/init.d/ssh restart