Create SSH Key
hetzner_create_ssh_keyAdd an SSH public key to your Hetzner project for use when creating servers.
Instructions
Add a new SSH public key to the project.
The SSH key can then be used when creating servers to enable SSH access.
Args:
name: A name for the SSH key (e.g., "my-laptop")
public_key: The SSH public key content (starts with "ssh-rsa", "ssh-ed25519", etc.)
labels: Optional key-value labels for organization
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name for the SSH key | |
| labels | No | Optional labels as key-value pairs | |
| public_key | Yes | The SSH public key content | |
| response_format | No | Output format: 'markdown' or 'json' | markdown |