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
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..."