Vultr DocsLatest Content


Update

Updated on 15 September, 2025

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.

Usage

console
$ vultr-cli ssh-key update <SSH Key ID> [flags]

Examples

console
# 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...."

Flags

Shorthand Long Version Description
-k --key SSH public key (in authorized_keys format)
-n --name Name of the SSH key

Comments

No comments yet.