Virtual Machines

List SSH keys on a server

Changed on

The keys in root's authorized_keys on a running Linux server, read from the server itself through its QEMU guest agent (a few seconds). Each key is named after your saved key with the same fingerprint; a key someone added on the server itself has no saved key. SSH keys are managed on Linux servers only. Needs vm.view.

get/api/v1/vms/{id}/ssh-keys

Request

  • Base URL
    https://api.rafftechnologies.com
  • URL
    https://api.rafftechnologies.com/api/v1/vms/{id}/ssh-keys
  • Auth
    API key in header X-API-Key

Path parameters

idstring uuid required

VM ID (UUID)

Response

The server's keys

successboolean

Example response

{
  "data": {
    "keys": [
      {
        "fingerprint": "SHA256:KH7zm92O0/dbuPCSkvuS9zdDvBneuFaHt+qwZbp8OYU",
        "type": "ssh-ed25519",
        "comment": "you@laptop"
      }
    ]
  }
}

Changes