SSHKeys

Create SSH key

Creates an SSH public key for SFTP storage access. These keys are used for passwordless authentication to SFTP storages.

post/storage/v4/ssh_keys

Request

  • Base URL
    https://api.gcore.com
  • URL
    https://api.gcore.com/storage/v4/ssh_keys
  • Auth
    HTTP apikey

Request body

namestring required

User-defined name for the SSH key

public_keystring required

The SSH public key content (ssh-rsa or ssh-ed25519 format)

Example request

{
  "name": "my-production-key",
  "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAA... user@example.com"
}

Response

SSHKeyV4

created_atstring date-time required

ISO 8601 timestamp when the SSH key was created

idinteger required

Unique identifier for the SSH key

namestring required

User-defined name for the SSH key

public_keystring required

The SSH public key content

Example response

{
  "created_at": "2025-08-05T09:15:00Z",
  "id": 123,
  "name": "my-production-key",
  "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAA... user@example.com"
}

Changes

No recorded changes to this operation across all 76 revisions of this API.