> > reference > compute > ssh-key

doctl compute ssh-key

Go to Navigation

Usage

doctl compute ssh-key [flags]

Aliases

k

Description

The sub-commands of doctl compute ssh-key manage the SSH keys on your account.

DigitalOcean allows you to add SSH public keys to the interface so that you can embed your public key into a Droplet at the time of creation. Only the public key is required to take advantage of this functionality. Note that this command does not add, delete, or otherwise modify any ssh keys that may be on existing Droplets.

Flags

OptionDescription
--help, -hHelp for this command
CommandDescription
doctl computeDisplay commands that manage infrastructure
doctl compute ssh-key createCreate a new SSH key on your account
doctl compute ssh-key deletePermanently delete an SSH key from your account
doctl compute ssh-key getRetrieve information about an SSH key on your account
doctl compute ssh-key importImport an SSH key from your computer to your account
doctl compute ssh-key listList all SSH keys on your account
doctl compute ssh-key updateUpdate an SSH key's name

Global Flags

OptionDescription
--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false