# /etc/ssh/sshd_config.d/99-hardening.conf PasswordAuthentication no KbdInteractiveAuthentication no PermitRootLogin no PubkeyAuthentication yes MaxAuthTries 4 LoginGraceTime 30 AllowUsers deploy # Before closing the current session: sudo sshd -t && sudo systemctl reload ssh