From b7a77f8cf13bb4be9df5d2c57944267cb8fcd390 Mon Sep 17 00:00:00 2001 From: Lukas Wurzinger Date: Sun, 15 Sep 2024 18:04:44 +0200 Subject: [PATCH] stuff --- common/ssh.nix | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/common/ssh.nix b/common/ssh.nix index d088f46..29b1e6c 100644 --- a/common/ssh.nix +++ b/common/ssh.nix @@ -1,8 +1,4 @@ { - lib, - pkgs, - ... -}: { age.identityPaths = ["/etc/ssh/ssh_host_ed25519_key"]; services.openssh = { @@ -15,19 +11,8 @@ } ]; settings = { - PermitRootLogin = "forced-commands-only"; + PermitRootLogin = "without-password"; PasswordAuthentication = false; }; }; - - programs.ssh = { - startAgent = true; - enableAskPassword = true; - askPassword = lib.getExe' pkgs.ksshaskpass "ksshaskpass"; - }; - - environment.etc."ssh/ssh_config".text = lib.mkAfter '' - Compression yes - ServerAliveInterval 60 - ''; }