ssh_execute_sudo
Execute remote commands with elevated privileges using sudo on a specified server. Input server details, command, and sudo password to manage operations securely via MCP SSH Manager.
Instructions
Execute command with sudo on remote server
Input Schema
Name | Required | Description | Default |
---|---|---|---|
command | Yes | Command to execute with sudo | |
cwd | No | Working directory | |
password | No | Sudo password (will be masked in output) | |
server | Yes | Server name or alias |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"command": {
"description": "Command to execute with sudo",
"type": "string"
},
"cwd": {
"description": "Working directory",
"type": "string"
},
"password": {
"description": "Sudo password (will be masked in output)",
"type": "string"
},
"server": {
"description": "Server name or alias",
"type": "string"
}
},
"required": [
"server",
"command"
],
"type": "object"
}