Skip to content
Skip to Content
Coder Docs

SSH Config

GET
/api/v2/deployment/ssh

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Response Body

OK

application/json
  1. response
hostname_prefix?string

HostnamePrefix is the prefix we append to workspace names for SSH hostnames. Deprecated: use HostnameSuffix instead.

hostname_suffix?string

HostnameSuffix is the suffix to append to workspace names for SSH hostnames.

ssh_config_options?

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X GET \	"$CODER_URL/api/v2/deployment/ssh" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN"
Example Response200
{  "hostname_prefix": "string",  "hostname_suffix": "string",  "ssh_config_options": {    "property1": "string",    "property2": "string"  }}