diff --git a/modules/nixos/openssh.nix b/modules/nixos/openssh.nix index d6cf556..7b55b1d 100644 --- a/modules/nixos/openssh.nix +++ b/modules/nixos/openssh.nix @@ -5,5 +5,15 @@ services.openssh = { enable = true; openFirewall = true; + ports = [ 666 ]; + + settings = { + AuthenticationMethods = "publickey"; + KbdInteractiveAuthentication = false; + MaxAuthTries = 5; + PasswordAuthentication = false; + PermitRootLogin = "no"; + X11Forwarding = false; + }; }; }