> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/compute/manage-ssh-keys.md).

# Manage SSH keys

In Glesys Cloud, you can add, delete, and view your current SSH keys for the current project. These keys are used when creating KVM and VMware virtual machines.

***

## Manage SSH keys using the control panel

You can manage your SSH keys by clicking **SSH keys** in the left-hand menu in the control panel. These keys are unique to the current project, but can be used for both KVM and VMware virtual machines.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2Fha4dfwUB18WTmW44Ia7F%2Fssh-keys-menu.png?alt=media&amp;token=ea2a56e6-4cb7-47a4-aedc-f24644ae9455" alt=""><figcaption></figcaption></figure>

A list of your current keys for the project will be presented. To view the content of a key, click the down-arrow icon.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FdM1Tkl5xq72aKgIZXbkS%2Fview-key-content.png?alt=media&amp;token=0d3a34fd-7d7e-4fbf-894d-a478d16cbd98" alt=""><figcaption></figcaption></figure>

### Add a key

To add a new key, click **+ Add**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FxPqknljX8PokEWUgmS3u%2Fssh-add-key-1.png?alt=media&amp;token=97ba7c1a-9e42-4e16-a1ad-0eaa453fab6b" alt=""><figcaption></figcaption></figure>

A new dialog box will open. Enter a name for the new key and paste it into the provided field. Then, click **Add**. The new key will then appear in the list of keys.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FkJFavAQbQLXrhledM9EY%2Fssh-add-key.png?alt=media&amp;token=02cb7143-ce6b-46a1-8d07-a918dd7777fc" alt=""><figcaption></figcaption></figure>

### Delete a key

To delete a key, click the three dots next to the key you want to delete. Then, click **Delete**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2F8fFdMmk8nTSWDHgOFlIy%2Fdelete-ssh-key.png?alt=media&amp;token=5a33bdcd-b4cc-40cb-8e57-eb34ec7b3400" alt=""><figcaption></figcaption></figure>

A dialog box will appear where you will need to confirm the deletion by typing the key name and clicking **Delete**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2F9HdvHap01Su03dzXOjB2%2Fconfirm-delete-ssh-key.png?alt=media&amp;token=6675278e-ea9c-421c-9162-9a2d6deda13d" alt=""><figcaption></figcaption></figure>

## Manage SSH keys using the API

Using the [API](/platform/control-panel/api.md), you can perform the same actions as through the control panel.

* To add a new key, use the [sshkey/add](https://github.com/GleSYS/API-docs/wiki/API-Documentation#sshkeyadd) endpoint.
* To delete a key, use the [sshkey/remove](https://github.com/GleSYS/API-docs/wiki/API-Documentation#sshkeyremove) endpoint.
* To list your current keys, use the [sshkey/list](https://github.com/GleSYS/API-docs/wiki/API-Documentation#sshkeylist) endpoint.
