This skill should be used when the user asks to "run ssh command", "execute on server", "ssh session", "upload file", "download file", "ssh tunnel", "check server status", "monitor server", "deploy files", "backup server", or needs remote server management. This skill emphasizes session reuse, workdir organization, and content persistence for sustainable operations.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install mcp-ssh-manager或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install mcp-ssh-manager⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/mcp-ssh-manager/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: mcp-ssh-manager description: This skill should be used when the user asks to "run ssh command", "execute on server", "ssh session", "upload file", "download file", "ssh tunnel", "check server status", "monitor server", "deploy files", "backup server", or needs remote server management. This skill emphasizes session reuse, workdir organization, and content persistence for sustainable operations. version: 0.1.0 metadata: clawdbot: emoji: "🖥️" requires: mcp_servers: ["ssh-manager"] ---
> Original MCP Server: mcp-ssh-manager by @bvisible > > This skill provides documentation, workflows, and best practices for using the MCP ssh-manager server.
Manage remote SSH servers using MCP ssh-manager tools. Emphasizes session reuse, workdir organization, and content persistence for sustainable operations.
| Task | Tool | Example | |------|------|---------| | List servers | ssh_list_servers | ssh_list_servers | | Execute command | ssh_execute | ssh_execute server="rock5t" command="df -h" | | Execute with sudo | ssh_execute_sudo | ssh_execute_sudo server="rock5t" command="apt update" | | Check status | ssh_connection_status | ssh_connection_status action="status" |
| Task | Tool | Example | |------|------|---------| | Start session | ssh_session_start | ssh_session_start server="rock5t" name="deploy" | | Send command | ssh_session_send | ssh_session_send session="xxx" command="cd /var" | | List sessions | ssh_session_list | ssh_session_list | | Close session | ssh_session_close | ssh_session_close session="xxx" |
| Task | Tool | Example | |------|------|---------| | Upload file | ssh_upload | ssh_upload server="rock5t" localPath="." remotePath="/tmp" | | Download file | ssh_download | ssh_download server="rock5t" remotePath="/var/log/syslog" localPath="." | | Sync files | ssh_sync | ssh_sync server="rock5t" source="local:./dist" destination="remote:/var/www" |
| Task | Tool | Example | |------|------|---------| | Tail log | ssh_tail | ssh_tail server="rock5t" file="/var/log/syslog" lines=20 | | Health check | ssh_health_check | ssh_health_check server="rock5t" | | Monitor resources | ssh_monitor | ssh_monitor server="rock5t" type="overview" | | Service status | ssh_service_status | ssh_service_status server="rock5t" services="nginx,docker" |
| Task | Tool | Example | |------|------|---------| | Create tunnel | ssh_tunnel_create | ssh_tunnel_create server="rock5t" type="local" localPort=8080 remoteHost="localhost" remotePort=80 | | List tunnels | ssh_tunnel_list | ssh_tunnel_list | | Close tunnel | ssh_tunnel_close | ssh_tunnel_close tunnelId="xxx" |
| Task | Tool | Example | |------|------|---------| | Create backup | ssh_backup_create | ssh_backup_create server="rock5t" type="files" name="data" | | List backups | ssh_backup_list | ssh_backup_list server="rock5t" | | Restore backup | ssh_backup_restore | ssh_backup_restore server="rock5t" backupId="xxx" | | Schedule backup | ssh_backup_schedule | ssh_backup_schedule server="rock5t" schedule="0 2 *" type="files" name="daily" |
# Simple command - no session needed
ssh_execute server="rock5t" command="df -h"
# Check existing sessions first
ssh_session_list
# Start a persistent session
ssh_session_start server="rock5t" name="deploy"
# Get session ID from previous response
ssh_session_send session="xxx" command="cd /home/imax/project"
ssh_session_send session="xxx" command="git pull origin main"
ssh_session_send session="xxx" command="npm install"
ssh_session_send session="xxx" command="npm run build"
ssh_session_send session="xxx" command="pm2 restart all"
# Close when done
ssh_session_close session="xxx"
# Check overall health
ssh_health_check server="rock5t"
# Monitor specific resources
ssh_monitor server="rock5t" type="cpu" interval=5 duration=30
# Check specific services
ssh_service_status server="rock5t" services="nginx,docker,postgres"
# Upload deployment package
ssh_upload server="rock5t" localPath="./dist/app.tar.gz" remotePath="/tmp/app.tar.gz"
# Extract and restart
ssh_execute server="rock5t" command="cd /tmp && tar -xzf app.tar.gz && cp -r app/* /var/www/ && pm2 restart app"
# Tail real-time logs
ssh_tail server="rock5t" file="/var/log/nginx/access.log" lines=50 follow=true
# Filter with grep
ssh_tail server="rock5t" file="/var/log/syslog" grep="error" lines=100
# Local port forward (access remote service locally)
ssh_tunnel_create server="rock5t" type="local" localPort=5432 remoteHost="localhost" remotePort=5432
# Now connect to local:5432 to access remote database
Store SSH operation results in ~/.ssh-workdir/{hostname}/{YYYY-MM-DD}-{topic}/ for reuse and comparison.
~/.ssh-workdir/
└── {hostname}/
└── {YYYY-MM-DD}-{topic}/
├── commands.md # All executed commands
├── output/ # Command outputs
│ ├── df-h.txt
│ ├── cpu.txt
│ └── memory.txt
├── status.json # Host status snapshot
└── summary.md # Findings and notes
# Create new workdir
mkdir -p ~/.ssh-workdir/{hostname}/{YYYY-MM-DD}-{topic}/output
# Create commands log
touch ~/.ssh-workdir/{hostname}/{YYYY-MM-DD}-{topic}/commands.md
# Add command to log
echo "## $(date)" >> ~/.ssh-workdir/{hostname}/{YYYY-MM-DD}-{topic}/commands.md
echo 'df -h' >> ~/.ssh-workdir/{hostname}/{YYYY-MM-DD}-{topic}/commands.md
# Execute and save
ssh_execute server="{hostname}" command="df -h" > ~/.ssh-workdir/{hostname}/{YYYY-MM-DD}-{topic}/output/df-h.txt
# Write findings
echo '## System Check Findings' >> ~/.ssh-workdir/{hostname}/{YYYY-MM-DD}-{topic}/summary.md
echo '- Disk usage: 75% on /dev/sda1' >> ~/.ssh-workdir/{hostname}/{YYYY-MM-DD}-{topic}/summary.md
echo '- Memory: 4GB/16GB used' >> ~/.ssh-workdir/{hostname}/{YYYY-MM-DD}-{topic}/summary.md
# Check if recent work exists
ls ~/.ssh-workdir/{hostname}/
# Read previous summary
cat ~/.ssh-workdir/{hostname}/{previous-date}-{topic}/summary.md
# Compare outputs
diff ~/.ssh-workdir/{hostname}/{yesterday}-{topic}/output/df-h.txt \
~/.ssh-workdir/{hostname}/{today}-{topic}/output/df-h.txt
Use session for:
Don't use session for:
df -h, pwd)# 1. Check existing sessions first
ssh_session_list
# 2. Reuse existing session if available and still active
ssh_session_send session="existing-id" command="..."
# 3. Start new session only if necessary
ssh_session_start server="{hostname}" name="{task-name}"
# 4. ALWAYS close when done
ssh_session_close session="{session-id}"
ClientAliveInterval on server for longer keepalive...
安装 MCP SSH Manager 后,可以对 AI 说这些话来触发它
Help me get started with MCP SSH Manager
Explains what MCP SSH Manager does, walks through the setup, and runs a quick demo based on your current project
Use MCP SSH Manager to this skill should be used when the user asks to "run ssh command", ...
Invokes MCP SSH Manager with the right parameters and returns the result directly in the conversation
What can I do with MCP SSH Manager in my developer & devops workflow?
Lists the top use cases for MCP SSH Manager, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/mcp-ssh-manager/ 目录(个人级,所有项目可用),或 .claude/skills/mcp-ssh-manager/(项目级)。重启 AI 客户端后,用 /mcp-ssh-manager 主动调用,或让 AI 根据上下文自动发现并使用。
MCP SSH Manager 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
MCP SSH Manager 可免费安装使用。请查阅仓库了解许可证信息。
This skill should be used when the user asks to "run ssh command", "execute on server", "ssh session", "upload file", "download file", "ssh tunnel", "check server status", "monitor server", "deploy files", "backup server", or needs remote server management. This skill emphasizes session reuse, workdir organization, and content persistence for sustainable operations.
Automate my developer & devops tasks using MCP SSH Manager
Identifies repetitive steps in your workflow and sets up MCP SSH Manager to handle them automatically
MCP SSH Manager 属于「Developer & DevOps」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。