---
title: "GET /v0/vms/ssh"
method: GET
path: "/v0/vms/ssh"
tags: ["VMs"]
---

# GET /v0/vms/ssh

`GET /v0/vms/ssh`

## Query parameters

- `vm_id` string, required

## Response `200`

- VmorchGetSshResponse
  - `ssh_hostname` string, required
  - `ssh_port` integer, required
  - `ssh_host_keys` VmorchSshHostKeyInfo[], nullable
    - `key_type` string, required
    - `base64_encoded_key` string, byte, required
  - `last_successful_key_update` integer — Unix timestamp.
  - `last_attempted_key_update` integer — Unix timestamp.

## Other responses

- `401`
- `404`
- `500`

## Changes

- **2025-11-07** `505757215a25` — 1 breaking, 2 info
  - the `ssh_host_keys/items/base64_encoded_key` response property contentEncoding changed from `` to `base64` for the status `200`
  - added the optional property `last_attempted_key_update` to the response with the `200` status
  - added the optional property `last_successful_key_update` to the response with the `200` status

[Change history](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/changes/v0/vms/ssh/get.md)

---

[API](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation.md) · [All operations](https://skmtc.dev/sfcompute/apis/san-francisco-compute-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sfcompute/san-francisco-compute-documentation/revisions/93dd7661e9bb/schema)
