From c564857aa4b64b1568898d87cacdbd3d31ff3f7a Mon Sep 17 00:00:00 2001 From: genofire Date: Thu, 14 Oct 2021 23:02:41 +0200 Subject: [PATCH] nixos: adjust ssh --- nixos/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/default.nix b/nixos/default.nix index 8bb663c..5ddad00 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -15,6 +15,9 @@ services.openssh = { enable = true; + passwordAuthentication = false; + challengeResponseAuthentication = false; + permitRootLogin = "without-password"; openFirewall = true; ports = [ 1512 ]; startWhenNeeded = true;