added ssh jail

This commit is contained in:
kity 2024-12-27 14:34:19 +01:00
parent 0b6399027c
commit c84a24c2ac

View file

@ -8,4 +8,14 @@
PermitRootLogin = "no";
};
};
services.fail2ban.jails.sshd.settings = {
ssh = ''
enabled = true
port = ssh
filter = sshd
logpath = %(sshd_log)s
maxretry = 5
'';
};
}