Harden SSH on Debian 12
Back up config
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
Key settings (/etc/ssh/sshd_config)
Port 2222
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
AllowUsers deploy alice
Protocol 2
ClientAliveInterval 600
ClientAliveCountMax 0
X11Fo...