From fb750e73685741961fd4bc05bb8ab7bbb9d71135 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Mon, 7 Aug 2023 13:33:41 -0600 Subject: [PATCH] [NixOS] Disable passward auth for ssh --- nixos/ssh.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/ssh.nix b/nixos/ssh.nix index 4a86f67d..0c9df4a7 100644 --- a/nixos/ssh.nix +++ b/nixos/ssh.nix @@ -16,5 +16,8 @@ }; }; - services.openssh.enable = true; + services.openssh = { + enable = true; + passwordAuthentication = false; + }; }