SSH Keys
Create a SSH Key
Use this endpoint to add new SSH keys, especially when integrating new developers or setting up new instances that require secure access.
The API Key secret should be sent through this header to authenticate the request.
my-ssh-key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDHRbO3HkzPmp65PR...fAn7Jlb8b61BFh6k= cloud@sesterce
Return the created ssh key
API key invalid
API key not found
POST /gpu-cloud/ssh-keys HTTP/1.1
Host:
x-api-key: text
Content-Type: application/json
Accept: */*
Content-Length: 125
{
"name": "my-ssh-key",
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDHRbO3HkzPmp65PR...fAn7Jlb8b61BFh6k= cloud@sesterce"
}
{
"_id": "668f9d8df664e3c028ce5de9",
"name": "ssh-key-name",
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDHRbO3HkzPmp65PR...fAn7Jlb8b61BFh6k= cloud@sesterce",
"isDefault": false,
"createdAt": "2024-10-16T16:05:11.439Z",
"updatedAt": "2024-11-15T12:46:12.327Z"
}
Retrieve the list of SSH Keys created
Access this endpoint to manage your SSH keys, which is essential for securing access to your instances and maintaining a safe environment.
The API Key secret should be sent through this header to authenticate the request.
Returns the list of user ssh keys
API key invalid
API key not found
GET /gpu-cloud/ssh-keys HTTP/1.1
Host:
x-api-key: text
Accept: */*
[
{
"_id": "668f9d8df664e3c028ce5de9",
"name": "ssh-key-name",
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDHRbO3HkzPmp65PR...fAn7Jlb8b61BFh6k= cloud@sesterce",
"isDefault": false,
"createdAt": "2024-10-16T16:05:11.439Z",
"updatedAt": "2024-11-15T12:46:12.327Z"
}
]
Mark a SSH Key as default
This endpoint is handy when you want to change the default SSH key for your connections, for example, during regular key rotation for security reasons.
The API Key secret should be sent through this header to authenticate the request.
SSH key marked as default
API key invalid
Not found
PATCH /gpu-cloud/ssh-keys/{id}/makedefault HTTP/1.1
Host:
x-api-key: text
Accept: */*
No content
Delete a SSH Key
Use this endpoint to clean up and remove obsolete or compromised SSH keys to maintain the security of your environment.
The API Key secret should be sent through this header to authenticate the request.
SSH key deleted successfully
API key invalid
Not found
DELETE /gpu-cloud/ssh-keys/{id} HTTP/1.1
Host:
x-api-key: text
Accept: */*
No content
Last updated
Was this helpful?