1
0

hosts/hydra-1,hosts/hydra-2,hosts/schule: migrate ssh settings

This commit is contained in:
2023-04-21 22:07:54 +02:00
parent 137cebbe9f
commit dcd8c37014
3 changed files with 10 additions and 4 deletions

View File

@@ -29,7 +29,9 @@
# Allow Hydra to fetch remote URLs in restricted mode
nix.settings.allowed-uris = "http:// https://";
services.openssh.permitRootLogin = "yes";
services.openssh.settings= {
PermitRootLogin = "yes";
};
users.extraUsers.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMv8Lbca/CR4das3HJ2F/sQ9dA7kdGS1hSVTt5lX4diP root@hydra-1"