CLICommands
orl vms ssh-key attach
Attach an org SSH key to a VM, part of the orl CLI for OpenRelay GPU VMs, pods, batches and billing. Usage, every flag and an example.
orl vms ssh-key attach <id> --ssh-key-id <ssh-key-id>Adds one of the org's SSH keys to the VM's allowed set, so the gateway accepts that key for SSH into the guest. Attaching a key already attached answers 204. The key must be a live key of the VM's organization, and a terminated VM answers 400.
Flags
| Flag | Type | Required | |
|---|---|---|---|
--ssh-key-id | string | yes | |
--body | string | no | a JSON object of request body fields, merged under any of this command's own flags that are also set, e.g. {"key":"value"} |
--body-file | string | no | read the --body JSON object from a file (- for stdin) |
This wraps the attachVmSshKey API operation.