nixos/services/sshd: disable password and root login

This commit is contained in:
2026-05-02 21:54:00 +02:00
parent 463c3659fa
commit a2d9278e4e
+6
View File
@@ -104,6 +104,12 @@ in
openssh = {
enable = true;
settings.ClientAliveInterval = 300;
settings = {
PasswordAuthentication = false;
KbdInteractiveAuthentication = false;
PermitRootLogin = "no";
};
};
};