---
title: "Get a Cube's SSH connection info"
method: GET
path: "/spaces/{spaceId}/cubes/{cubeId}/ssh"
tags: ["Cubes"]
---

# Get a Cube's SSH connection info

`GET /spaces/{spaceId}/cubes/{cubeId}/ssh`

## Request

- Base URL: `https://krova.cloud/api/v1`
- URL: `https://krova.cloud/api/v1/spaces/{spaceId}/cubes/{cubeId}/ssh`
- Auth: API key in header `X-API-KEY`

Host (server public IPv4), host SSH port, login user, and the Cube's captured SSH host public keys. **Use `user` rather than assuming a username** — it is `ubuntu` or `debian` on Cubes created from images that ship a default user, and `root` on Cubes created before that change or imported from a rootfs without one. `hostKeys` is empty only until the reachability cron makes its first capture; clients fall back to trust-on-first-use until then, and pin strictly afterwards.

## Path parameters

- `spaceId` string, required
- `cubeId` string, required

## Response `200`

SSH connection info

- CubeSshInfo
  - `host` string, nullable, required
  - `port` integer, required
  - `user` string, required
  - `hostKeys` object[], required
    - `type` string, required
    - `key` string, required

## Other responses

- `404`: Resource not found

---

[API](https://skmtc.dev/krova/apis/krova-cloud-api.md) · [All operations](https://skmtc.dev/krova/apis/krova-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/krova/apis/krova-cloud-api/revisions/46bb68281ce1?raw)
