nixos-config/services/openssh.nix
Charlotte 🦝 Delenk 44d6f695a2
All checks were successful
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #24254 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #24253 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #24252 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #24251 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.thinkrac Hydra build #24258 of nixos-config:pr618:nixosConfigurations.thinkrac
Hydra nixosConfigurations.pc-installer Hydra build #24257 of nixos-config:pr618:nixosConfigurations.pc-installer
Hydra nixosConfigurations.not522 Hydra build #24255 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.not522-installer Hydra build #24256 of nixos-config:pr618:nixosConfigurations.not522-installer
Add known hosts ports
2024-11-08 08:48:56 +01:00

13 lines
620 B
Nix

{...}: {
services.openssh.enable = true;
services.openssh.settings = {
PermitRootLogin = "yes";
PasswordAuthentication = false;
};
programs.ssh.knownHosts = {
"rainbow-resort.int.chir.rs".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII9MczPuvEh9XaT6e3emfC+WyMYEpyRu2jDUkt3bBk8W";
"instance-20221213-1915.int.chir.rs".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIE+GanuiV1I08OP8+nNy24+zagQN08rtJnCoU/ixiQNn";
"not522.tailbab65.ts.net".publicKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILpOcmvVODaja3wDdnocb/k6MK7vsh5uH8gpeHR9+/rY";
};
networking.firewall.allowedTCPPorts = [22];
}