invalid_public_key
Invalid SSH public key. HTTP status 400.
The `publicKey` sent to `POST /api/v2/ssh-keys` is not a one-line OpenSSH public key.
What to do
Send the contents of the .pub file, a line that starts with a key type such as ssh-ed25519 or ssh-rsa. Convert a key in PuTTY or PEM format to OpenSSH format first. Never send the private key.
What the message says
- The SSH public key could not be parsed.
Example
{ "type": "https://developer.hostup.se/errors/invalid_public_key", "title": "Invalid SSH public key", "status": 400, "detail": "The SSH public key could not be parsed.", "code": "invalid_public_key", "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.