From 6a3869996baab30cbbb242f7c79ec66dea90cdc6 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Wed, 5 Apr 2023 09:36:47 +0200 Subject: [PATCH] Some ssh changes --- modules/system/ssh/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/system/ssh/default.nix b/modules/system/ssh/default.nix index 05c7d97..9aa4a07 100644 --- a/modules/system/ssh/default.nix +++ b/modules/system/ssh/default.nix @@ -12,9 +12,11 @@ in config = mkIf cfg.enable { services.openssh = { enable = true; + ports = [ 22 ]; + openFirewall = true; settings = { X11forwarding = true; - PermitRootLogin = "yes"; + PermitRootLogin = "no"; passwordAuthentication = false; kbdInteractiveAuthentication = false; };