sed -i "s/^PermitRootLogin yes/PermitRootLogin no/g" /etc/ssh/sshd_config service sshd restart