Deleting a Secure Shell (SSH) key removes the public key from your Vultr account. After deleting the key, you can no longer log in to your account using the corresponding private key. This action is necessary if you've inactive or compromised keys.
Follow this guide to delete SSH keys using the Vultr Customer Portal, API, or CLI.
Navigate to Account and select SSH Keys under OTHER.
Select the SSH key from the list and click the Delete SSH Key icon.
Click Delete SSH Key in the confirmation prompt to permanently delete the target SSH Key.
Send a GET
request to the List SSH Keys endpoint and note the target SSH key's ID.
$ curl "https://api.vultr.com/v2/ssh-keys" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a DELETE
request to the Delete SSH Key endpoint and specify the ID to delete the target SSH key.
$ curl "https://api.vultr.com/v2/ssh-keys/{ssh-key-id}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
List all SSH keys and note the target SSH key ID.
$ vultr-cli ssh-keys list
Delete the target SSH Key by specifying the ID.
$ vultr-cli ssh-keys delete <ssh-key-id>
No comments yet.