sbx setup ssh
| Description | Set up SSH client config for the sandbox endpoint |
|---|---|
| Usage | sbx 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
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
| Command | Description |
|---|---|
sbx setup ssh remove | experimental Remove SSH client config for the current local app instance |
Options
| Option | Default | Description |
|---|---|---|
--alias | *.sbx | ssh_config Host pattern to write |
Global options
| Option | Default | Description |
|---|---|---|
--cloud | Dispatch 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-url | https://api.sandboxes-cloud.docker.com | Cloud 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, --debug | Enable debug logging |
Examples
sbx setup ssh
ssh my-sandbox.sbx -- echo hello