Neckrez

SSH hardening config generator for sshd_config

Choose how people may log in and get a ready sshd_config drop-in or full file, plus the commands to check and apply it without locking yourself out.

Why a drop-in file

Ubuntu and Debian read every file in /etc/ssh/sshd_config.d/ before the rest of sshd_config, and sshd keeps the first value it sees. A file named 01-hardening.conf therefore wins over the defaults, including the cloud-init file that cloud images ship, and package updates leave it alone.

What matters most

Do not lock yourself out

More tools