feat: add public ssh key to root

This commit is contained in:
Jacob Bachmann 2024-09-12 16:44:12 +02:00
parent 87d3ef861b
commit 27f38b3ddf
Signed by: bchmnn
GPG key ID: 732A612DAD28067D

View file

@ -23,4 +23,20 @@
cli-utils.enable = true; cli-utils.enable = true;
}; };
}; };
services.openssh = {
settings = {
PasswordAuthentication = false;
};
};
users.users.root = {
openssh = {
authorizedKeys = {
keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAOG8Sja2i6nepkEkuxYdu86XbT9vS5uniBmZifSMZ0t jacob.bachmann@posteo.de"
];
};
};
};
} }