From 06dce432f0f53b11b2b5bc88e4b5a5d7c52b3c31 Mon Sep 17 00:00:00 2001 From: moni-dz Date: Fri, 27 Dec 2024 22:16:59 +0800 Subject: [PATCH] mistral: disallow logins without ssh keys --- hosts/mistral/configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/mistral/configuration.nix b/hosts/mistral/configuration.nix index 9ac20b6..fba0553 100644 --- a/hosts/mistral/configuration.nix +++ b/hosts/mistral/configuration.nix @@ -39,7 +39,8 @@ enable = true; settings = { GatewayPorts = "yes"; - PermitRootLogin = "yes"; + PasswordAuthentication = false; + PermitRootLogin = "prohibit-password"; }; };