SSH Keys
Last updated
Was this helpful?
Last updated
Was this helpful?
Use this endpoint to add new SSH keys, especially when integrating new developers or setting up new instances that require secure access.
Access this endpoint to manage your SSH keys, which is essential for securing access to your instances and maintaining a safe environment.
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.
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.
GET /gpu-cloud/ssh-keys HTTP/1.1
Host:
x-api-key: text
Accept: */*
[
{
"_id": "668f9d8df664e3c028ce5de9",
"user": "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"
}
]
The API Key secret should be sent through this header to authenticate the request.
PATCH /gpu-cloud/ssh-keys/{id}/makedefault HTTP/1.1
Host:
x-api-key: text
Accept: */*
No content
The API Key secret should be sent through this header to authenticate the request.
DELETE /gpu-cloud/ssh-keys/{id} HTTP/1.1
Host:
x-api-key: text
Accept: */*
No content
The API Key secret should be sent through this header to authenticate the request.
my-ssh-key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDHRbO3HkzPmp65PR...fAn7Jlb8b61BFh6k= cloud@sesterce
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",
"user": "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"
}