rport_ssh_exec
Create an SSH tunnel to a Pi and execute remote commands with sudo and pipe support, using credentials from environment variables. Optionally keep the tunnel open after execution.
Instructions
Crea un t�nel SSH en RPort y ejecuta un comando en la Pi con usuario pi o queo. El password sale de RPORT_SSH_PASSWORD en .env (nunca lo pidas en el chat). Permite pipes y sudo en la shell de la Pi, a diferencia de rport_exec_command. Cierra el t�nel al terminar salvo keep_tunnel=true.
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": {
"client_id": "<client_id>",
"command": "<command>"
},
"name": "rport_ssh_exec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| user | No | Si se omite, prueba pi y luego queo | |
| command | Yes | Comando remoto, p.ej. whoami; docker ps | |
| client_id | Yes | ||
| keep_tunnel | No | Dejar el t�nel abierto | |
| timeout_sec | No |