Hardening SSH login in apex #217

Manually merged
rarias merged 3 commits from disable-password-login into master 2026-01-07 13:21:18 +01:00
Showing only changes of commit c2a201b085 - Show all commits

View File

@@ -57,7 +57,14 @@
};
};
services.fail2ban.enable = true;
services.fail2ban = {
enable = true;
maxretry = 5;
bantime-increment = {
enable = true; # Double ban time on each attack
maxtime = "7d"; # Ban up to a week
};
};
# Disable SSH login with password, allow only keypair
services.openssh.settings.PasswordAuthentication = false;