Skip to content

Build: use host key checking #12725

@agjohnson

Description

@agjohnson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ImprovementMinor improvement to code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions