dsh-ssh-remote
SSH 远程工作区插件(多机并行版):管理多台服务器并保持多个 SSH 连接,允许 Agent 使用 rw_* 工具直接查看、修改和执行远程文件。
AI 分析
核心用途是让 AI 直接操作多台远程服务器上的文件。适合需要跨服务器进行远程开发、运维或部署任务的用户。针对 DSH 0.1.1-rc.2 优化。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cslht11/dsh-ssh-remote說明文件
閱讀完整 README ↗🛠 Usage Examples
Conversational mode (model-driven SSH)
I have two servers at 192.168.1.10 and 192.168.1.20, please:
1. rw_connect add 192.168.1.10 (root, key /Users/me/.ssh/id_rsa)
2. rw_connect add 192.168.1.20 (root, password xxx)
3. rw_pick_workspace (machineId=, path=/srv/app)
4. rw_exec (machineId=, command='docker compose ps')
5. rw_list_dir (machineId=, path=/srv/app) to see files
6. rw_read_file (machineId=, path=/srv/app/src/main.py)
7. rw_write_file (machineId=, path=/srv/app/config.yml, content='...')
8. rw_sync (machineId=) mirror remote workspace to local ~/.dsh/remote-workspaces/
Tool reference (all support machineId to target specific machine; omit = current machine)
| Tool | Purpose |
|---|---|
rw_info | View all registered machines, connection status, and current workspace |
rw_connect | Register/connect a machine (pass host/user/password/privateKeyPath for new machines) |
rw_switch | Switch current machine (subsequent calls without machineId default to this one) |
rw_pick_workspace | Set remote workspace directory for a specific machine |
rw_list_dir / rw_read_file | Browse / read remote files |
rw_write_file | Write remote file directly (auto-creates parent directories) |
rw_exec | Execute shell commands on remote |
rw_sync / rw_push | Remote ↔ local mirror bidirectional SFTP sync |
rw_disconnect | Disconnect specific machine (other machines unaffected) |
Settings panel mode
Browser DSH Web → Settings → Remote Workspace: add/edit/delete machines, test connection, switch current machine.