Loading...
Loading...
Run shell commands on remote SSH hosts via exec:ssh. Reads targets from ~/.claude/ssh-targets.json. Use for deploying, monitoring, or controlling remote machines.
npx skill4agent add anentrypoint/plugforge ssh~/.claude/ssh-targets.json{
"default": {
"host": "192.168.1.10",
"port": 22,
"username": "pi",
"password": "yourpassword"
},
"prod": {
"host": "10.0.0.1",
"username": "ubuntu",
"keyPath": "/home/user/.ssh/id_rsa"
}
}hostportusernamepasswordkeyPathpassphraseexec:ssh
<shell command>@nameexec:ssh
@prod
sudo systemctl restart myappexec:ssh
cd /var/log && tail -20 syslogexec:ssh
sudo systemctl reset-failed myunit 2>/dev/null; systemd-run --unit=myunit bash -c 'your-long-running-command'systemctl reset-failed <unit>exec:ssh
systemd-run --unit=job-$(date +%s) bash -c 'nohup myprogram &'exec:ssh
setsid nohup bash -c 'myprogram > /tmp/out.log 2>&1' &ssh2~/.claude/gm-toolsexec:bash
cd ~/.claude/gm-tools && npm install ssh2~/.claude/gm-tools/node_modules/ssh2~/.claude/plugins/node_modules/ssh2