Skip to content

ssh_key_already_exists

SSH key already exists. HTTP status 409.

The web hosting account already has an SSH key with this name or this public key.

What to do

GET /api/v2/shared-hosting/{accountId}/ssh-keys lists the installed keys. If the key is already there, there is nothing to add. To add a different key, give it a name that is not in use.

What the message says

  • An SSH key with that name or public key already exists on this hosting account.

Example

Response 409
{
"type": "https://developer.hostup.se/errors/ssh_key_already_exists",
"title": "SSH key already exists",
"status": 409,
"detail": "An SSH key with that name or public key already exists on this hosting account.",
"code": "ssh_key_already_exists",
"requestId": "req_01hxa3b4c5d6e7f8g9h0j1k2m3"
}

Branch on code, not on title or detail. When you contact support about it, include the requestId. More in Errors and retries.

Endpoints that return it