Skip to content

ssh Code Snippets

Disable root login

bash
sed -i 's/PermitRootLogin yes/PermitRootLogin no/g' /etc/ssh/sshd_config
/etc/init.d/ssh restart

Changelog

Just observe 👀