Sign inSign up

docker/sbx-kit-github-ssh

Verified Publisher

By Docker, Inc.

•Updated 1 day ago

Pre-populates GitHub host keys so SSH operations work without interactive host verification prompts.

Sandbox Kit
0

93

docker/sbx-kit-github-ssh repository overview

Digest

sha256:3bca46fa05f2…

Size

2 kB

Schema

v3

Pushed

1 day ago

Specificationspec.yaml

MIXIN

Pre-populates GitHub host keys so SSH operations work without interactive host verification prompts.


CapabilitiesExpand a row to see its full configuration. See the full spec for the complete descriptor.
TypeRequiredDescription
com.docker.sandbox/network-policy@1Required—
com.docker.sandbox/lifecycle@1Required—
com.docker.sandbox/agent-context@1Required—

Requiresdeb/jq, deb/openssh-client

Apply this mixin to a sandbox

sbx run <agent> --kit docker/sbx-kit-github-ssh:latest

Make sure you have docker sbx installed

Run the following command to install sbx on your machine.

macOS
brew install docker/tap/sbx
Windows
winget install Docker.sbx
Learn more about docker sbx⁠

Note

Experimental: Sandbox Kit v3

This kit uses the experimental Sandbox Kit specification⁠, specifically v3⁠. The format and runtime behavior may change before v3 is stable.

⁠github-ssh

A mixin that pre-populates ~/.ssh/known_hosts with GitHub's host keys so SSH operations to GitHub work without interactive host verification prompts.

Without this kit, SSH connections from a sandbox to GitHub fail because there is no TTY available to interactively accept a new host key.

⁠Prerequisites

Your SSH key must be loaded in the agent on the host and registered with your GitHub account. Start the sandbox with this kit attached, from its published OCI artifact on Docker Hub:

sbx run --kit "docker.io/docker/sbx-kit-github-ssh:latest" claude

Or from a git URL targeting this repo:

sbx run --kit "git+https://github.com/docker/sbx-kits-contrib.git#dir=github-ssh" claude

⁠Usage

Once the kit is installed, SSH operations to GitHub work without any additional configuration:

git clone [email protected]:org/repo.git
git push origin my-branch

⁠Composing with git-ssh-sign

If you also want SSH commit signing, combine this kit with git-ssh-sign⁠:

sbx run \
  --kit "git+https://github.com/docker/sbx-kits-contrib.git#dir=github-ssh" \
  --kit "git+https://github.com/docker/sbx-kits-contrib.git#dir=git-ssh-sign" \
  claude

⁠How it works

At install time, the kit fetches GitHub's current SSH host keys from https://api.github.com/meta⁠ (the canonical source GitHub publishes) and appends them to /home/agent/.ssh/known_hosts. Using the HTTPS metadata endpoint works through HTTPS-only proxies where ssh-keyscan cannot reach port 22, and avoids hardcoding keys that GitHub may rotate.

This week's pulls

Pulls:

10

Last week