ssh_sudo_exec
Execute commands with sudo privileges on a remote server through an existing SSH session, optionally providing a sudo password and timeout.
Instructions
Execute a command with sudo privileges on the remote server.
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": {
"sessionId": "<sessionId>",
"command": "<command>"
},
"name": "ssh_sudo_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | Command to execute with sudo | |
| timeout | No | Command timeout in milliseconds | |
| sessionId | Yes | SSH session ID from ssh_connect | |
| sudoPassword | No | Sudo password (if required by server) |