Agent skill
ssh
Execute commands on a remote server via SSH using the bash tool.
Stars
1
Forks
0
Install this agent skill to your Project
npx add-skill https://github.com/rakibdev/dotfiles/tree/main/home/.config/ai/skills/ssh
SKILL.md
- Connect
bash
sshpass -p $SSH_PASSWORD ssh $SSH_USER@$SSH_HOST 'uname -a'
Note: Env vars exposed. Assume exist.
- Reuse that session to run subsequent commands:
bash: command="cd /var/www/app && git pull\n", sessionId="3"
bash: command="npm run build\n", sessionId="3"
bash: command="pm2 restart app\n", sessionId="3"
When you use sessionId it reuses same shell. No sshpass needed after first-time.
Didn't find tool you were looking for?