Disable password login for user

This commit is contained in:
pazpi 2025-08-22 18:13:46 +02:00
parent 06536ac58b
commit 4bc15a5913

View file

@ -10,10 +10,13 @@ in
config = lib.mkIf cfg.enable {
# Enable SSH
services = {
openssh.enable = true;
# Disable password root access. Necessary for Colmena
openssh.settings.PermitRootLogin = "prohibit-password";
services.openssh = {
enable = true;
settings = {
# Disable password root access. Necessary for Colmena
PermitRootLogin = "prohibit-password";
PasswordAuthentication = false;
};
};
my.utils.serverNodeUsers.enable = true;