summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Van Doorn <nick@nvandoorn.com>2023-03-16 20:46:32 +0000
committerNick Van Doorn <nick@nvandoorn.com>2023-03-16 20:46:32 +0000
commitd21c83c323a1d1c94c01315d13597f0eb0619a93 (patch)
tree8e859e40fcf48e9a409b8cc0ab21c05657885bef
parent51189b65a21ab17ad0f0cd4b0f23984285a6c7c0 (diff)
Disable password SSH and root accountHEADmaster
-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 = [ ... ];