Vast.ai API
Accounts

update ssh key

1min
PUT
https://console.vast.ai/api/v0/ssh/{id}/
Production server

Updates the specified SSH key with the provided value.

CLI Usage: vastai update ssh-key id ssh_key

Authentication
BearerAuth
Path Parameters
id
*
Body Parameters
body
*
ssh_key
*
Responses
200
SSH key updated successfully
success
key
400
Bad Request
success
error
msg
429
Too Many Requests
detail




Updated 14 Feb 2025
Did this page help you?