ssh_exec
Execute shell commands on remote servers through persistent SSH sessions. Run commands in background or with custom timeouts for secure remote management.
Instructions
Execute a command on a connected SSH session.
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": {
"session_id": "<session_id>",
"command": "<command>"
},
"name": "ssh_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID from ssh_connect | |
| command | Yes | Shell command to execute | |
| timeout_ms | No | Command timeout in milliseconds | |
| background | No | Run command in background |