register_ssh_key
Register your local SSH public key on Vast.ai so it is applied to all current and future instances without uploading your private key.
Instructions
Register a local SSH public key on the Vast.ai account (POST /ssh/).
The key is applied automatically to all current instances and any new instances created afterwards. Reads the .pub file from disk — never uploads your private key.
Examples: register_ssh_key(name="laptop", public_key_path="C:/Users/me/.ssh/id_ed25519.pub") register_ssh_key(name="ci", public_key_path="/home/runner/.ssh/id_ed25519.pub")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| public_key_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||