openssh: kill open and stale connections quicker

This commit is contained in:
Sandro - 2023-06-22 22:23:10 +02:00
parent 00000174a6
commit 00000017b2
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 1 additions and 0 deletions

View File

@ -189,6 +189,7 @@
# Required for deployment and sops
enable = true;
settings = {
LoginGraceTime = 30; # throw out unauthenticated connections earlier than the 120 default
PasswordAuthentication = lib.mkIf (!config.c3d2.k-ot.enable) false;
PermitRootLogin = lib.mkOverride 900 "prohibit-password";
};