In some recent changes we disabled host key checking on SSH Git operations:
The reason was that the build process was prompting on missing host keys (StrictHostKeyChecking=ask, the default). I don't know why the prompt was happening generally though, the host keys for known hosts should be available on build instances.
We currently have the option set to StrictHostKeyChecking=no, which doesn't prompt but also doesn't use existing host keys for verification.
The option to use to avoid prompting but to still use existing known hosts is StrictHostKeyChecking=accept-new:
OpenSSH ssh_config man page
The Ubuntu 24.04 man pages don't hint at this option being available, it should be in the OpenSSH package installed. This option might not yet be usable in 24.04.
In some recent changes we disabled host key checking on SSH Git operations:
GIT_SSH_COMMANDto avoid host key checking #12649The reason was that the build process was prompting on missing host keys (
StrictHostKeyChecking=ask, the default). I don't know why the prompt was happening generally though, the host keys for known hosts should be available on build instances.We currently have the option set to
StrictHostKeyChecking=no, which doesn't prompt but also doesn't use existing host keys for verification.The option to use to avoid prompting but to still use existing known hosts is
StrictHostKeyChecking=accept-new:OpenSSH ssh_config man page
The Ubuntu 24.04 man pages don't hint at this option being available, it should be in the OpenSSH package installed. This option might not yet be usable in 24.04.