Hetzner Cloud icon

Hetzner Cloud

Manage servers, volumes, networks and more in Hetzner Cloud

SSH Key → Create

AI-generated

Summary

Create an SSH key in the Hetzner Cloud project by sending its name and OpenSSH public key to the Hetzner Cloud API. The operation returns the created SSH key record.

Inputs

  • Name (required) — Unique name for the SSH key.
  • Public Key (required) — Public key in OpenSSH format.
  • Additional Body Fields (JSON) — Optional extra properties to merge into the request body.
  • Request Options — Optional batching, SSL certificate validation, proxy, and request timeout settings.

Output shape

A single SSH key record

The response is unwrapped from the API's ssh_key property.

Links

Discussion