config/profiles/sshd.nix

7 lines
183 B
Nix

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