linux remove root access

Shell
# remove root external access (need reboot)
sed -i.bak "s/PermitRootLogin yes/PermitRootLogin no/" /etc/ssh/sshd_config
Source

Also in Shell: