config/profiles/sshd.nix
2025-01-08 21:08:08 +01:00

8 lines
249 B
Nix

{
services.openssh.enable = true;
services.openssh.settings.X11Forwarding = true;
services.openssh.settings.PasswordAuthentication = false;
services.openssh.settings.KbdInteractiveAuthentication = false;
services.fail2ban.enable = true;
}