Add SSH keys to a server
add_ssh_keysLet SSH keys log in to a server as its administrator (root). Give key_ids of saved keys, or public_key to save a new key first and add it. The server must be running; keys already on it stay and nothing restarts. Windows servers take no SSH keys. confirm must repeat the server id, because this grants login to the machine. Needs a key with vm:destroy (and vm:write to save a new key). The account owner is told.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"server_id": "<server_id>",
"confirm": "<confirm>"
},
"name": "add_ssh_keys"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A label for the new key | |
| confirm | Yes | Repeat the server id | |
| key_ids | No | Ids of saved keys, from the create_server question or the ssh_keys.list operation | |
| server_id | Yes | ||
| public_key | No | A new public key line, for example "ssh-ed25519 AAAA... name". Never a private key. | |
| request_id | No | An id you choose for this one action, 8 to 64 characters. Send the same id again when retrying, so nothing is done twice. Use a new id for a new action. |