Skip to content

ssh: auto-accept GitHub host key on fresh installations#70

Merged
RaghavSood merged 1 commit intomainfrom
fix/issue-69-git-clone-error
Mar 12, 2026
Merged

ssh: auto-accept GitHub host key on fresh installations#70
RaghavSood merged 1 commit intomainfrom
fix/issue-69-git-clone-error

Conversation

@HalBowman
Copy link
Collaborator

Summary

  • Add SSH known_hosts handling to ensure GitHub's SSH host key is automatically whitelisted before performing git clone operations
  • This fixes the issue where the first git clone fails on fresh flock installations due to missing SSH host keys in known_hosts

Changes

  • Created internal/ssh/known_hosts.go with helper function that checks and adds GitHub's SSH host key if not present
  • Modified internal/server/handlers_instances.go to call this helper before initiating git clone operations

Fixes #69

Add SSH known_hosts handling to ensure GitHub's SSH host key is
automatically whitelisted before performing git clone operations.
This fixes the issue where the first git clone fails on fresh flock
installations due to missing SSH host keys in known_hosts.

Created internal/ssh/known_hosts.go with a helper function that checks
and adds GitHub's SSH host key if not present. Modified
internal/server/handlers_instances.go to call this helper before
initiating git clone operations.

Fixes #69
@RaghavSood RaghavSood merged commit a23648b into main Mar 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Git clone error on fresh flock installation

2 participants