---
title: "show ssh-keys"
method: GET
path: "/api/v0/instances/{instance_id}/ssh/"
tags: ["Instances"]
---

# show ssh-keys

`GET /api/v0/instances/{instance_id}/ssh/`

Retrieves the SSH keys associated with a specific instance.

CLI Usage: `vastai show ssh-keys <instance_id>`

## Path parameters

- `instance_id` integer, required

## Response `200`

Success response with SSH keys

- object
  - `success` boolean
  - `ssh_keys` string — JSON string containing array of SSH key objects

## Other responses

- `400` — Bad Request - Invalid instance ID
- `401` — Unauthorized - Invalid or missing authentication
- `404` — Instance not found

---

[API](https://skmtc.net/vast/apis/vast-ai-api.md) · [All operations](https://skmtc.net/vast/apis/vast-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vast/vast-ai-api/revisions/4ed14f79f796/schema)
