baseten ssh setup once, then connect to any running workload with:
ssh production.model-<model-id>.ssh.baseten.co always lands on whatever is serving production. To reach a specific replica, append its 5-char replica ID to the deployment form: model-<model-id>-<deployment-id>-<replica>.ssh.baseten.co.
SSH access requires the workload to be running with SSH enabled.
setup
~/.ssh/config that routes *.ssh.baseten.co connections through this CLI.
After running this once, connect to a running workload with:
--profile or the current profile). Re-run to refresh the keypair and config block. Setup fails if ~/.ssh/config already configures these hosts outside the managed block (for example from truss ssh setup).
Options
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
Output formatOne of:
text, json, jsonl, noneUse a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Enable verbose logging
Examples
Configure SSH access using the current profileFilter output with --jq
Print the generated keypair path
Output
Text mode (--output text): Prints the keypair path and pinned profile to stderr; no stdout output.
JSON mode (--output json): payload type cmd.SSHSetupResult.
On success, stdout is a JSON object with the keypair path, whether an existing key was reused, and the pinned profile.
sign
Match exec step. Signs a short-lived certificate for the workload named by the hostname, writes it next to the keypair, and caches the proxy authorization for the proxy step.
Options
Profile to use when none is selected via —profile or BASETEN_PROFILE. Baked into the SSH config by setup.
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
Output formatOne of:
text, json, jsonl, noneUse a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Enable verbose logging
Examples
Sign a certificate for a model deployment (run by ssh, not directly)Output
Text mode (--output text): No output on success; the signed certificate and proxy authorization are written to disk.
JSON mode (--output json): payload type cmd.JSONUndefined.
Emits an empty JSON object on success; the certificate and proxy authorization are written to disk, not stdout.
proxy
ProxyCommand. Connects to the SSH proxy using the authorization cached by the sign step and relays the connection between stdin and stdout.
Options
Profile to use when none is selected via —profile or BASETEN_PROFILE. Baked into the SSH config by setup.
Filter JSON output with a jq expression; implies —output json (or jsonl for streamed commands)
Output formatOne of:
text, json, jsonl, noneUse a specific stored profile for this command, overriding BASETEN_PROFILE and the current profile
Enable verbose logging
Examples
Relay a connection (run by ssh as ProxyCommand, not directly)Output
Text mode (--output text): Relays raw bytes between stdin/stdout and the SSH proxy; produces no other output.
JSON mode (--output json): payload type cmd.JSONUndefined.