CLI & APICommand reference
stackblaze ssh-keys
SSH public keys on your account (for stackblaze ssh --native, scp, sftp, IDEs)
Usage: stackblaze ssh-keys|ssh-key [options] [command]
SSH public keys on your account (for stackblaze ssh --native, scp, sftp, IDEs)
Options:
-h, --help Print help
Commands:
list|ls [options] List the SSH keys on your account
add [options] [file] Add a public key (default: ~/.ssh/id_ed25519.pub,
id_ecdsa.pub or id_rsa.pub; "-" reads stdin)
remove|rm [options] <key> Remove a key by ID, fingerprint or name
help [command] Print this message or the help of the given
subcommand(s)ssh-keys list
Usage: stackblaze ssh-keys list|ls [options]
List the SSH keys on your account
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
List the SSH keys on your account:
stackblaze ssh-keys list┌─────────────┬────────────────────────────────────────────────────┬───────────┬───────────────────────────┐
│ Name │ Fingerprint │ Last used │ ID │
├─────────────┼────────────────────────────────────────────────────┼───────────┼───────────────────────────┤
│ docs-laptop │ SHA256:5g5mDATXIDsUT/hhNWty4UwZHa24gLT8U4YyaENuOW0 │ never │ cmww84bpo006duz01waozhn6z │
└─────────────┴────────────────────────────────────────────────────┴───────────┴───────────────────────────┘With --json:
stackblaze ssh-keys list --json[
{
"id": "cmww84bpo006duz01waozhn6z",
"name": "docs-laptop",
"fingerprint": "SHA256:5g5mDATXIDsUT/hhNWty4UwZHa24gLT8U4YyaENuOW0",
"createdAt": "2026-11-25T14:33:21.228Z",
"lastUsedAt": null
}
]ssh-keys add
Usage: stackblaze ssh-keys add [options] [file]
Add a public key (default: ~/.ssh/id_ed25519.pub, id_ecdsa.pub or id_rsa.pub;
"-" reads stdin)
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
--json Output JSON (same as -o json) (default: false)
--name <name> Key name (default: the key's comment, else user@host)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
Add a public key to your account so stackblaze ssh --native, scp and sftp can use it:
ssh-keygen -q -t ed25519 -f ./laptop-key -N '' -C docs-laptop
stackblaze ssh-keys add laptop-key.pub --name docs-laptopOK Added SSH key docs-laptop (SHA256:5g5mDATXIDsUT/hhNWty4UwZHa24gLT8U4YyaENuOW0)
Connect with: stackblaze ssh --nativeWithout a file, it adds ~/.ssh/id_ed25519.pub (or id_ecdsa.pub, id_rsa.pub), and - reads the key from stdin.
ssh-keys remove
Usage: stackblaze ssh-keys remove|rm [options] <key>
Remove a key by ID, fingerprint or name
Options:
--api-url <url> StackBlaze API base URL (env STACKBLAZE_API_URL)
--token <token> API token, sb_pat_... (env STACKBLAZE_TOKEN)
--json Output JSON (same as -o json) (default: false)
-o, --output <format> Output format: text or json (choices: "text", "json")
-h, --help Print helpExample
Remove a key by its name (its ID or fingerprint work too):
stackblaze ssh-keys remove docs-laptop
stackblaze ssh-keys listOK Removed SSH key docs-laptop (SHA256:5g5mDATXIDsUT/hhNWty4UwZHa24gLT8U4YyaENuOW0)
No SSH keys on your account. Add one: stackblaze ssh-keys add