doapi-ssh-key¶
NAME¶
doapi-ssh-key — manage SSH public keys on DigitalOcean
SYNOPSIS¶
doapi-ssh-key new [--unique] <name> [<file>]
doapi-ssh-key show [-M|--multiple] [<ssh key> ...]
doapi-ssh-key update [--unique] <ssh key> <new name>
doapi-ssh-key delete [-M|--multiple] <ssh key> ...
doapi-ssh-key also takes the universal options common to all doapi commands.
SSH keys can be specified by ID number, fingerprint, or name. A name that is also a valid ID or fingerprint is interpreted as such rather than as a name (and so SSH keys with such names must be referred to by their ID or fingerprint instead).
new¶
doapi-ssh-key new [--unique] <name> [<file>]
Register the contents of <file>
(or standard input if no file is specified)
as a new SSH public key with name <name>
. The new key is output as an
SSHKey
object converted to JSON.
show¶
doapi-ssh-key show [-M|--multiple] [<ssh key> ...]
Show SSH keys. If no keys are specified, all keys registered to the account
are shown. The keys are output as a list of SSHKey
objects converted to
JSON.
Options¶
-
-M
,
--multiple
¶
Arguments that could refer to multiple SSH keys are interpreted as such rather than using the default resolution rules; see Handling Non-Uniqueness of Identifiers for more information.
update¶
doapi-ssh-key update [--unique] <ssh key> <new name>
Update (i.e., rename) an SSH key. The updated key is output as an SSHKey
object converted to JSON.
delete¶
doapi-ssh-key delete [-M|--multiple] <ssh key> ...
Delete SSH keys. If any of the given SSH keys do not exist, nothing is deleted. There is no output.
Options¶
-
-M
,
--multiple
¶
Arguments that could refer to multiple SSH keys are interpreted as such rather than using the default resolution rules; see Handling Non-Uniqueness of Identifiers for more information.