Skip to content
Wardcase Docs

Mint a short-lived SSH password token for this sandbox

POST
/v1/sandboxes/{id}/ssh-token

The token is valid for 10 minutes and is used as the SSH password; the username is the sandbox id. Public keys registered under /v1/ssh-keys also work without a token. The gateway allows interactive shells, single commands, SFTP and local forwarding (ssh -L) to the sandbox itself only (destination localhost, 127.0.0.1, ::1 or the sandbox id). Remote forwarding and agent forwarding are refused. Below the Enterprise Cloudflare plan the client IP is not visible to the gateway and is recorded as unavailable. SSH is served from one region (config sshRegion, env SSH_REGION); a sandbox in any other region gets 409 with the problem slug conflict and a detail naming the SSH region.

id
required
string
/^sbx_[A-Za-z0-9]+$/

Sandbox ids are lowercase: sbx_ followed by 16 characters from [a-z0-9]. Hostname labels derived from them are therefore safe to compare after lowercasing.

Token. Use it as the SSH password; the username is the sandbox id.

object
username
required

The sandbox id

string
host
required
string
port
required
integer
default: 22
token
required

Use as the SSH password

string
expires_at
required
string format: date-time
command
required
string

Not found

RFC 9457 problem document

object
type
required

https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).

string format: uri
title
required
string
status
required
integer
detail
string
instance
string
errors

Field-level validation errors

Array<object>
object
path
required
string
message
required
string

The resource is not in a state that allows this

RFC 9457 problem document

object
type
required

https://docs.wardcase.com/errors/<slug>. The slug is a stable machine code (PROBLEM_TYPES in @vivarium/contracts).

string format: uri
title
required
string
status
required
integer
detail
string
instance
string
errors

Field-level validation errors

Array<object>
object
path
required
string
message
required
string