ssh_sudo_exec
Execute commands with sudo privileges on a remote server via an existing SSH session. Provide the sudo password if required by the server.
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 |
|---|---|---|---|
| sessionId | Yes | SSH session ID from ssh_connect | |
| command | Yes | Command to execute with sudo | |
| sudoPassword | No | Sudo password (if required by server) | |
| timeout | No | Command timeout in milliseconds |