2026-10-17 10:20 UTC
Use authelia for 2fa
Disable root ssh
Disable password authentication for ssh. Keys only.
Set up Fail2ban
That’s about all that’s left; 2fa and brute force protection. Good job.
Replies (2)
-
@moldy_rice@piefed.keyboardvagabond.com 2026-10-17 22:28
Sub fail2ban for wazuh. It does the same but so much more, and does everything with 0 config after fresh install.
-
@StateMachine@lemmy.zip 2026-10-17 10:43
And move SSH to a non-default port. Without that, my public-facing servers get thousands of SSH attacks a day, and it basically goes to zero after moving it to a random-looking high port. Also, totally agree with using public key login and disable password login.