Add ssh-key of Elios

This commit is contained in:
Paul-Henri Froidmont 2023-10-17 22:36:27 +02:00
parent 864c0f130e
commit e732cc98bf
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE
2 changed files with 6 additions and 2 deletions

View file

@ -7,7 +7,10 @@ in {
config = mkIf cfg.enable {
services.openssh.enable = true;
services.openssh.settings.PermitRootLogin = "prohibit-password";
users.users.root.openssh.authorizedKeys.keyFiles =
[ ../ssh_keys/froidmpa-desktop.pub ../ssh_keys/froidmpa-laptop.pub ];
users.users.root.openssh.authorizedKeys.keyFiles = [
../ssh_keys/froidmpa-desktop.pub
../ssh_keys/froidmpa-laptop.pub
../ssh_keys/elios-desktop.pub
];
};
}