Add fail2ban to sshd module

This commit is contained in:
JuliusFreudenberger 2026-03-11 22:53:54 +01:00
parent b3ec023cad
commit b441618575

View file

@ -3,11 +3,17 @@
lib, lib,
... ...
}: { }: {
services.openssh = { services = {
enable = true; openssh = {
settings = { enable = true;
PasswordAuthentication = false; settings = {
PermitRootLogin = "no"; PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
fail2ban = {
enable = true;
bantime = "1h";
}; };
}; };
} }