Skip to main content
Updated May 10, 2026 Registers an SSH public key for use when creating Linux VMs. The key string itself is immutable; rename in place. The detected algorithm is exposed as key_type.

Example — from a file

Example — inline

Argument reference

Required

Attribute reference (computed)

Lifecycle

Importing existing keys

Permissions

The API key needs ssh_key.create, ssh_key.manage, and ssh_key.delete at the account level. The system role Account Admin grants all of these.

Data sources

raff_vm

Reference key IDs in raff_vm.ssh_keys.

raff_api_key

API keys for programmatic access.

CLI: raff ssh-key

Imperative equivalent.
Last modified on May 11, 2026