--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "dokploy_ssh_key Resource - dokploy" subcategory: "" description: |- An SSH key pair Dokploy uses to clone private Git repositories and to reach remote servers. ~> The private key is stored in Terraform state. Use a state backend with encryption at rest. ~> Dokploy's update endpoint only accepts name and description. Changing either key forces a new resource. --- # dokploy_ssh_key (Resource) An SSH key pair Dokploy uses to clone private Git repositories and to reach remote servers. ~> The private key is stored in Terraform state. Use a state backend with encryption at rest. ~> Dokploy's update endpoint only accepts `name` and `description`. Changing either key forces a new resource. ## Schema ### Required - `name` (String) Display name of the key pair. - `private_key` (String, Sensitive) PEM-encoded private key. - `public_key` (String) OpenSSH-formatted public key. ### Optional - `description` (String) Free-form description. ### Read-Only - `created_at` (String) RFC 3339 timestamp of when the key was created. - `id` (String) Unique SSH key identifier. - `last_used_at` (String) RFC 3339 timestamp of when the key was last used, if ever.