This will disable SSH login as root
sed -i '/^PermitRootLogin/s/yes/no/' /etc/ssh/sshd_config && \
/etc/init.d/sshd restart
This will disable SSH login as root
sed -i '/^PermitRootLogin/s/yes/no/' /etc/ssh/sshd_config && \
/etc/init.d/sshd restart