From 1426985da66addc3bd312587817f6bd750c40c8e Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Fri, 8 Mar 2024 07:14:19 +0000 Subject: [PATCH] Legion: temp revert username change, enable key-based root login only --- flake.nix | 1 + services/sshd.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 88df0318..98f49b0a 100644 --- a/flake.nix +++ b/flake.nix @@ -171,6 +171,7 @@ Legion = systemConfig { hostName = "Legion"; + user = "xenia"; systemModules = [ ./services/nix-serve.nix ./services/caddy.nix diff --git a/services/sshd.nix b/services/sshd.nix index e2a38a7c..841cb90f 100644 --- a/services/sshd.nix +++ b/services/sshd.nix @@ -4,7 +4,7 @@ ports = [22]; settings = { UseDns = true; - PermitRootLogin = "no"; + PermitRootLogin = "without-password"; PasswordAuthentication = false; GatewayPorts = "yes"; LogLevel = "VERBOSE";