add_authorized_key
Add an SSH public key to a user's authorized_keys file to grant key-based authentication access to an Ubuntu server.
Instructions
Add an SSH public key to a user's authorized_keys.
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": {
"alias": "<alias>",
"targetUser": "<targetUser>",
"publicKey": "<publicKey>"
},
"name": "add_authorized_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | ||
| publicKey | Yes | SSH public key string | |
| targetUser | Yes | ||
| sudo_password | No |