cslht11/dsh-ssh-remote1

dsh-ssh-remote

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

包名
dsh-ssh-remote
版本
0.6.0
许可证
MIT
最近更新
2026年8月23日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:cslht11/dsh-ssh-remote

🛠 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)

ToolPurpose
rw_infoView all registered machines, connection status, and current workspace
rw_connectRegister/connect a machine (pass host/user/password/privateKeyPath for new machines)
rw_switchSwitch current machine (subsequent calls without machineId default to this one)
rw_pick_workspaceSet remote workspace directory for a specific machine
rw_list_dir / rw_read_fileBrowse / read remote files
rw_write_fileWrite remote file directly (auto-creates parent directories)
rw_execExecute shell commands on remote
rw_sync / rw_pushRemote ↔ local mirror bidirectional SFTP sync
rw_disconnectDisconnect specific machine (other machines unaffected)

Settings panel mode

Browser DSH Web → Settings → Remote Workspace: add/edit/delete machines, test connection, switch current machine.