Skip to content

Not a valid SSH public key

What the sftp_key_invalid error from the Perafly API means and what to do about it.

On this page
Code
sftp_key_invalid
HTTP status
400

What it means

A storage path, upload or SFTP account request can't be completed.

What to do

Paths start with public/ or private/. Check the path or account and try again.

Read more: Storage and SFTP

Example response

This is the shape of the answer. title and detail are in English, or in Turkish with Accept-Language: tr; detail appears when there's more to say.

{
  "type": "https://perafly.com/docs/errors/sftp_key_invalid",
  "title": "Not a valid SSH public key",
  "status": 400,
  "code": "sftp_key_invalid",
  "instance": "/v1/…",
  "requestId": "req_…"
}

All error codes