Skip to main content

sshkeys

Overview

Namesshkeys
TypeResource
Idlinode.profile.sshkeys

Fields

NameDatatypeDescription
idintegerThe unique identifier of an SSH Key object.
createdstringThe date this key was added.
labelstringA label for the SSH Key.
ssh_keystringThe 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)

Methods

NameAccessible byRequired ParamsDescription
getSSHKeySELECTsshKeyIdReturns a single SSH Key object identified by id that you have access to view.
getSSHKeysSELECTReturns a collection of SSH Keys you've added to your Profile.
addSSHKeyINSERTAdds an SSH Key to your Account profile.
deleteSSHKeyDELETEsshKeyIdDeletes an SSH Key you have access to.

Note: deleting an SSH Key will not remove it from any Linode or Disk that was deployed with authorized_keys. In those cases, the keys must be manually deleted on the Linode or Disk. This endpoint will only delete the key's association from your Profile.
_getSSHKeyEXECsshKeyIdReturns a single SSH Key object identified by id that you have access to view.
_getSSHKeysEXECReturns a collection of SSH Keys you've added to your Profile.
updateSSHKeyEXECsshKeyIdUpdates an SSH Key that you have permission to read_write.

Only SSH key labels can be updated.