Add an SSH key

Adds an SSH Key to your Account profile.

Permissions and scopes

To call this operation, you need permissions, based on the model you're using:

  • Identity and access permissions. Your user needs a role with these permissions. Learn more.

    • Permissions: create_profile_ssh_key
  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: account:read_write

CLI

linode-cli sshkeys create \
  --label "My SSH Key" \
  --ssh_key "ssh-rsa AAAA_valid_public_ssh_key_123456785== user@their-computer"

Learn more

Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
Body Params
string
length between 0 and 64

A label for the SSH Key.

string

The public SSH Key, which is used to authenticate to the root user of the Linodes you deploy.

Accepted formats:

  • ssh-dss
  • ssh-rsa
  • ecdsa-sha2-nistp
  • ssh-ed25519
  • sk-ecdsa-sha2-nistp256 (Akamai-specific)
Responses

Language
Credentials
Response
Choose an example:
application/json