Steps I run on every new server. Nothing groundbreaking, just the basics that eliminate 99% of brute force noise:
- Generate ed25519 key, copy to server
- Disable PasswordAuthentication in sshd_config
- Move to a non-standard port
- Install fail2ban (3 attempts, 1h ban)
- AllowUsers + MaxAuthTries 3
Full commands and config snippets in the writeup. Takes about 5 minutes start to finish.
You must log in or # to comment.