forked from tuxcord/tuxcord.nix
nixos/services/sshd: disable password and root login
This commit is contained in:
+7
-1
@@ -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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user