ssh-executor
by @rickkbarbosa
Execute commands on remote hosts over SSH using SSH aliases, ssh config, tmux sessions, and private keys. Use when the user asks to SSH into a host, inspect...
1. Gather the host alias, username, port, and key path from the user's instructions or local SSH config.
2. Prefer SSH aliases from ~/.ssh/config instead of raw IPs when available.
3. Validate the target host with the user before running any command, especially if the host was inferred or listed from config rather than explicitly requested.
4. Default to read-only commands first.
5. Require explicit user confirmation before destructive or state-changing commands.
6. Use the bundled scripts/ssh-run.sh helper for execution.
7. Return stdout, stderr, exit code, and resolved SSH metadata clearly.
clawhub install ssh-executor