---
title: Update
url: https://docs.vultr.com/reference/vultr-cli/ssh-keys/update
description: Updates an existing SSH key in your Vultr account by modifying its name or public key content.
publish_date: 2025-09-14T03:09:12.019061Z
last_updated: 2025-11-07T17:52:23.174157Z
---

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 |