Open AlexChalk opened 5 years ago
Host key verification failed
I had the same issue when running a nixops deploy
on github actions. In my case I fixed it by doing:
ssh-keyscan <host_ip> >> ~/.ssh/known_hosts
## from https://askubuntu.com/questions/123072/ssh-automatically-accept-keys
I'm having ssh-related issues with a nixops deployment to digital ocean. I'm on macOS, and I have linuxkit-nix configured successfully for local builds that require linux.
When deploying to DO, the initial ssh into the machine goes fine:
The installer seems to be running ok until we get to the reboot:
Then, the address is added to known_hosts again?
Build info is output:
And our third? ssh connection fails.
(Nixops then errors with
error: a 'x86_64-linux' with features {} is required to build '/nix/store/9j73g9irkbd904xs6m1kjhzjkcinziz6-append-initrd-secrets.drv', but I am a 'x86_64-darwin' with features {benchmark, big-parallel, nixos-test}
).I posted on linuxkit-nix https://github.com/nix-community/linuxkit-nix/issues/31: the advice I received was that nixops uses the target host as a remote builder when the system is not the same as the client, so the issue isn't with linuxkit, but rather with nixops, the DO provider and why it's changing ssh keys on the host.
Any idea what could be causing this issue with the ssh connections?