Hands-on task
Lock passwords and root out of sshd
The provider's image came with SSH wide open: /etc/ssh/sshd_config allows logging in as root, and cloud-init dropped its own snippet into /etc/ssh/sshd_config.d/ that turns on password login. You've already handed out keys to the team — make the effective sshd configuration forbid both password login and root login (value no for both).
- sshd_config
- sshd_config.d
- Include
- first occurrence
- sshd -T