# urbestack-ssh-key-set

First published 14 Oct 2026 (release 0.2.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-ssh-key-set --user NAME --id ID --label TEXT
```

## Description

Changes only the label of a customer's SSH public key in place. Use the ID shown by urbestack-ssh-key-list for that customer. The label must be 1 to 64 printable ASCII characters. UrbeStack immediately writes the new label as the key's comment in the customer's file under ssh_keys_dir.

## Same in the API

- [PATCH /users/{name}/ssh-keys/{id}](https://urbestack.com/docs/api/patch-users-name-ssh-keys-id.md): Change a customer's SSH key label

## Command family: ssh

- [urbestack-ssh-key-add](https://urbestack.com/docs/commands/urbestack-ssh-key-add.md): Adds an SSH public key to a customer's list.
- [urbestack-ssh-key-del](https://urbestack.com/docs/commands/urbestack-ssh-key-del.md): Removes an SSH public key from the customer's list and from UrbeStack's authorized keys file for that customer immediately.
- [urbestack-ssh-key-list](https://urbestack.com/docs/commands/urbestack-ssh-key-list.md): Lists the SSH public keys UrbeStack manages for a customer.
