dsh-ssh-remote
SSH 远程工作区插件(多机并行版):管理多台服务器、同时保持多个 SSH 连接,在每台上选择远程工作区,Agent 用 rw_* 工具直接查看/修改/执行远程文件。基于 dsh-remote (MIT) 改造,支持多池并行连接。
安装
$
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.