diff --git a/nixos/hosts/homeserver/default.nix b/nixos/hosts/homeserver/default.nix index 9c2b076..efcb458 100644 --- a/nixos/hosts/homeserver/default.nix +++ b/nixos/hosts/homeserver/default.nix @@ -20,7 +20,12 @@ services.xserver.xkb.layout = "us"; - services.openssh.enable = true; + services.openssh = { + enable = true; + settings.PasswordAuthentication = false; + settings.KbdInteractiveAuthentication = false; + settings.PermitRootLogin = "no"; + }; networking.firewall.allowedTCPPorts = [ 22 ]; networking.firewall.allowedUDPPorts = [ ];