attach ssh-key
Instances
attach ssh-key
Attaches an SSH key to the specified instance, allowing SSH access using the provided key.
CLI Usage: vastai attach ssh <instance_id> <ssh_key>
POST
attach ssh-key
Documentation Index
Fetch the complete documentation index at: https://vastai-80aa3a82-auto-openapi-preview-pr-4175.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key must be provided in the Authorization header
Path Parameters
ID of the instance to attach the SSH key to
Body
application/json
The SSH key to attach to the instance
Minimum string length:
1Example:
"ssh-rsa AAAAB3NzaC1yc2EAAA..."