nixos/services/sshd: disable password and root login

This commit is contained in:
2026-05-02 21:54:00 +02:00
committed by ErrorNoInternet
parent 463c3659fa
commit 6cd9ae97ea
+7 -1
View File
@@ -103,7 +103,13 @@ in
services = { services = {
openssh = { openssh = {
enable = true; enable = true;
settings.ClientAliveInterval = 300;
settings = {
ClientAliveInterval = 300;
KbdInteractiveAuthentication = false;
PasswordAuthentication = false;
PermitRootLogin = "no";
};
}; };
}; };