Updates an existing SSH key in your Vultr account by modifying its name or public key content.
The vultr-cli ssh-key update
command modifies an existing SSH key in your Vultr account, allowing you to update its name or the public key content.
$ vultr-cli ssh-key update <SSH Key ID> [flags]
# Full example
$ vultr-cli ssh-key update ffd31f18-5f77-454c-9065-212f942c3c35 --name="updated name" \
--key="ssh-rsa AAAAB3NzaC1yc...."
# Shortened with alias commands
$ vultr-cli ssh u ffd31f18-5f77-454c-9065-212f942c3c35 --name="updated name" --key="ssh-rsa AAAAB3NzaC1yc...."
Shorthand | Long Version | Description |
---|---|---|
-k | --key | SSH public key (in authorized_keys format) |
-n | --name | Name of the SSH key |
No comments yet.