From c01239c99d2b10d31f75266f9d8329d1dd9e66ff Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Sun, 19 Dec 2021 13:24:19 +0100 Subject: [PATCH] Removed password auth from sshd --- hosts/architect/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/architect/default.nix b/hosts/architect/default.nix index 034d2e4..b060ee5 100644 --- a/hosts/architect/default.nix +++ b/hosts/architect/default.nix @@ -132,7 +132,11 @@ in { services = { zfs.autoScrub.enable = true; xserver.videoDrivers = [ "nvidia" ]; - openssh.enable = true; + openssh = { + enable = true; + passwordAuthentication = false; + challengeResponseAuthentication = false; + }; smartd.enable = true; };