summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configuration.nix3
1 files changed, 2 insertions, 1 deletions
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 = [ ... ];