Skip to content

stratumctl key-pairs

Manage SSH key pairs

Terminal window
stratumctl key-pairs [flags]

Aliases: key-pair, keys

Delete a key pair (running instances keep working; only new launches are affected)

Terminal window
stratumctl key-pairs delete <key-id> [flags]
Terminal window
stratumctl key-pairs delete key-8c3m7x2qk4
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Describe a key pair

Terminal window
stratumctl key-pairs get <key-id> [flags]
Terminal window
stratumctl key-pairs get key-8c3m7x2qk4
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)

Import an SSH public key (private key never leaves your machine)

Terminal window
stratumctl key-pairs import <name> [flags]
Terminal window
stratumctl key-pairs import axel-laptop --public-key-file ~/.ssh/id_ed25519.pub
stratumctl key-pairs import ci-runner --public-key "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExample ci@example.com"
Flag Type Default Description
--display-name string Human-friendly display name
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)
--public-key string OpenSSH-format public key (literal)
--public-key-file string Path to a file containing the OpenSSH-format public key

List key pairs in a project

Terminal window
stratumctl key-pairs list [flags]
Terminal window
stratumctl key-pairs list
stratumctl key-pairs list --output json
Flag Type Default Description
--project string Project ID (defaults to STRATUM_PROJECT or profile project_id)