dotfiles/hosts/_common/components/ssh.nix
RingOfStorms (Josh) 72af92c4eb add fail2ban on ssh
2024-07-09 17:32:02 -05:00

19 lines
315 B
Nix

{ ... }:
{
# Use fail2ban
services.fail2ban = {
enable = true;
};
# Open ports in the firewall.
networking.firewall.allowedTCPPorts = [
22 # sshd
];
# Enable the OpenSSH daemon.
services.openssh = {
enable = true;
logLevel = "VERBOSE";
settings.PermitRootLogin = "yes";
};
}