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 {
|
||||
|
||||
# Enable SSH
|
||||
services = {
|
||||
openssh.enable = true;
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
# Disable password root access. Necessary for Colmena
|
||||
openssh.settings.PermitRootLogin = "prohibit-password";
|
||||
PermitRootLogin = "prohibit-password";
|
||||
PasswordAuthentication = false;
|
||||
};
|
||||
};
|
||||
|
||||
my.utils.serverNodeUsers.enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue