From d21c83c323a1d1c94c01315d13597f0eb0619a93 Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Thu, 16 Mar 2023 20:46:32 +0000 Subject: Disable password SSH and root account --- configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index 3cb6ef3..66035c1 100644 --- a/configuration.nix +++ b/configuration.nix @@ -127,7 +127,8 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; - + services.openssh.permitRootLogin = "no"; + services.openssh.passwordAuthentication = false; # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; -- cgit v1.2.3