nixos/services/sshd: disable password and root login
This commit is contained in:
+7
-1
@@ -103,7 +103,13 @@ in
|
||||
services = {
|
||||
openssh = {
|
||||
enable = true;
|
||||
settings.ClientAliveInterval = 300;
|
||||
|
||||
settings = {
|
||||
ClientAliveInterval = 300;
|
||||
KbdInteractiveAuthentication = false;
|
||||
PasswordAuthentication = false;
|
||||
PermitRootLogin = "no";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user