Share feedback
Answers are generated based on the documentation.

sbx setup ssh

DescriptionSet up SSH client config for the sandbox endpoint
Usagesbx setup ssh [flags]

Experimental

This command is experimental.

Experimental features are intended for testing and feedback as their functionality or design may change between releases without warning or can be removed entirely in a future release.

Description

Write a generated SSH config + known_hosts and include it from ~/.ssh/config so "ssh .sbx" connects with no prompts. Named app instances use "ssh .sbx-" instead. Re-run any time; it's idempotent.

No SSH client key is needed — authentication is handled by the daemon's Unix socket (OS user boundary) combined with an active Docker login. Sign in first (sbx login).

Commands

CommandDescription
sbx setup ssh removeexperimental Remove SSH client config for the current local app instance

Options

OptionDefaultDescription
--alias*.sbxssh_config Host pattern to write

Global options

OptionDefaultDescription
--cloudDispatch to Docker Cloud Sandboxes API instead of local sandboxd (supported by a growing set of verbs — run 'sbx --cloud --help' for the current list)
--cloud-api-urlhttps://api.sandboxes-cloud.docker.comCloud Sandboxes API base URL; only used with --cloud. Defaults to prod (https://api.sandboxes-cloud.docker.com). Set DOCKER_CLOUD_API_URL or pass this flag to override; a legacy value ending in /v1 is accepted.
-D, --debugEnable debug logging

Examples

sbx setup ssh
ssh my-sandbox.sbx -- echo hello