Hydra queue runner doesn't automatically accept new hosts (due to default behavior in OpenSSH which is to ask for accepting the new host).
There are two ways to do that automatically:
- by setting
sshPublicHostKey which should be base64 encoded fingerprint line (not documented, but see commit NixOS/hydra@2a7fbd5), I will push a commit to enable setting this in NixOS
- by setting
programs.ssh.extraConfig = "StrictHostKeyChecking no"; in hydra-master
I chose the latter because it's a very low security tradeoff. SSH will still bail out if there is host mismatch, but it will automatically accept new hosts.
If hosts/key is hacked on first connection I think you're in trouble anyway.
Hydra queue runner doesn't automatically accept new hosts (due to default behavior in OpenSSH which is to ask for accepting the new host).
There are two ways to do that automatically:
sshPublicHostKeywhich should be base64 encoded fingerprint line (not documented, but see commit NixOS/hydra@2a7fbd5), I will push a commit to enable setting this in NixOSprograms.ssh.extraConfig = "StrictHostKeyChecking no";inhydra-masterI chose the latter because it's a very low security tradeoff. SSH will still bail out if there is host mismatch, but it will automatically accept new hosts.
If hosts/key is hacked on first connection I think you're in trouble anyway.