Disable password login for user
This commit is contained in:
parent
06536ac58b
commit
4bc15a5913
1 changed files with 7 additions and 4 deletions
|
|
@ -10,10 +10,13 @@ in
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
# Enable SSH
|
# Enable SSH
|
||||||
services = {
|
services.openssh = {
|
||||||
openssh.enable = true;
|
enable = true;
|
||||||
# Disable password root access. Necessary for Colmena
|
settings = {
|
||||||
openssh.settings.PermitRootLogin = "prohibit-password";
|
# Disable password root access. Necessary for Colmena
|
||||||
|
PermitRootLogin = "prohibit-password";
|
||||||
|
PasswordAuthentication = false;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
my.utils.serverNodeUsers.enable = true;
|
my.utils.serverNodeUsers.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue