Get Cube SSH Info
get_cube_sshRetrieve the SSH host, port, login user, and pinned host keys for a Cube. Returns the correct username (ubuntu/debian/root) instead of guessing, enabling access with passwordless sudo.
Instructions
Everything needed to SSH into a Cube: host, port, the login USER, and any pinned host keys. Call this rather than guessing a username — it is ubuntu or debian on Cubes created from images that ship a default user, and root on older Cubes, so it cannot be derived from the image id. The returned user has passwordless sudo; sudo su reaches root.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cubeId | Yes | The Cube id to operate on. | |
| spaceId | No | Krova Cloud Space id. Optional if KROVA_SPACE_ID is set as the server default. |