Manage SSH Keys
This page explains how to manage SSH Keys, including removing keys and editing key labels.
For adding new SSH Keys, please refer to Add New SSH Key. To assign an SSH key to a server, see here.
Delete SSH Keys
-
Navigate to Services > SSH Keys in the sidebar, which will take you to the SSH Keys page.
-
On the SSH Keys page, click on the … (More Options) icon under the Action column of the SSH Keys table for the key you wish to delete. This will open an options menu.
-
Click on “Remove SSH key”. This will open a pop-up asking if you are sure you want to delete the SSH key with the given label.
-
Click Remove.
-
A green success message will appear at the top of the page upon successful submission.
curl --request DELETE \--url https://api.ingenuitycloudservices.com/rest-api/ssh-keys/{sshKeyId} \--header 'Accept: application/json' \--header 'X-Api-Token: API_KEY'
❯ ics-cli sshkeys delete MyKeySuccessfully deleted SSH Key
Edit Label of SSH Keys
-
Navigate to Services > SSH Keys in the sidebar, which will take you to the SSH Keys page.
-
On the SSH Keys page, click on the … (More Options) icon under the Action column of the SSH Keys table for the key you wish to edit the label. This will open an options menu.
-
Click on “Edit Label”. This will make the Label field on the table editable for the selected SSH key.
-
Once done editing the label, click on ’✔ Save’, if you do not want to save the changes simply click on ‘X’.
-
A green success message will appear at the top of the page upon successful submission.
Edit Label of SSH Keys
curl --request PUT \--url https://api.ingenuitycloudservices.com/rest-api/ssh-keys/{sshKeyId} \--header 'Accept: application/json' \--header 'Content-Type: application/json' \--header 'X-Api-Token: API_KEY' \--data '{"label":"string"}'
Note: To find out the
sshKeyId
, you can use the Get SSH Keys Endpoint provided below.
Get SSH Keys
curl --request GET \--url https://api.ingenuitycloudservices.com/rest-api/ssh-keys \--header 'Accept: application/json' \--header 'X-Api-Token: API_KEY'
❯ ics-cli sshkeys rename MyKey --name NewNameSuccessfully renamed SSH Key
Note: Deleting a SSH key does not automatically remove it from any servers it may be associated with. You must manually remove the key from each server.