Skip to main content
GET
/
v0
/
vms
/
ssh
Get VM SSH info
curl --request GET \
  --url https://api.sfcompute.com/v0/vms/ssh
{
  "ssh_hostname": "<string>",
  "ssh_port": 1,
  "ssh_host_keys": [
    {
      "key_type": "<string>",
      "base64_encoded_key": "aSDinaTvuI8gbWludGxpZnk="
    }
  ],
  "last_successful_key_update": 1738972800,
  "last_attempted_key_update": 1738972800
}

Query Parameters

vm_id
string
required

Response

ssh_hostname
string
required
ssh_port
integer<u-int16>
required
Required range: x >= 0
ssh_host_keys
object[] | null
last_successful_key_update
null | integer<int64>

Unix timestamp.

Example:

1738972800

last_attempted_key_update
null | integer<int64>

Unix timestamp.

Example:

1738972800