From cfa98eda52d1612b47b810d1505438bda86b559a Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sun, 25 Oct 2015 14:21:03 +0100 Subject: [PATCH] mastus: sshd: disable password auth --- mastus/configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mastus/configuration.nix b/mastus/configuration.nix index 964cb93..15cb0d3 100644 --- a/mastus/configuration.nix +++ b/mastus/configuration.nix @@ -30,7 +30,10 @@ time.timeZone = "Europe/Amsterdam"; # Enable the OpenSSH daemon. - services.openssh.enable = true; + services.openssh = { + enable = true; + passwordAuthentication = false; + }; users.extraUsers.gebner = { isNormalUser = true;