ssh_execute_sudo
Execute privileged commands on remote servers using sudo. Specify server, command, and optional password, working directory, and timeout for secure administrative operations.
Instructions
Execute command with sudo on remote server
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server | Yes | Server name or alias | |
| command | Yes | Command to execute with sudo | |
| password | No | Sudo password (will be masked in output) | |
| cwd | No | Working directory | |
| timeout | No | Command timeout in milliseconds (default: 30000) |
Implementation Reference
- src/tool-registry.js:58-72 (registration)The 'ssh_execute_sudo' tool is listed in the TOOL_GROUPS.advanced array, serving as the central registry for MCP tool names used for conditional registration based on user configuration.'ssh_deploy', 'ssh_execute_sudo', 'ssh_alias', 'ssh_command_alias', 'ssh_hooks', 'ssh_profile', 'ssh_connection_status', 'ssh_tunnel_create', 'ssh_tunnel_list', 'ssh_tunnel_close', 'ssh_key_manage', 'ssh_execute_group', 'ssh_group_manage', 'ssh_history' ]