dsh-ssh-bridge
在终端中运行以下命令:
dsh plugin install lance-kanglu/dsh-ssh-bridge
将以下提示词粘贴到 DeepSeek Harness 对话框中:
在 DeepSeek Harness 中运行 dsh plugin install lance-kanglu/dsh-ssh-bridge 即可安装该插件,源码见 https://github.com/lance-kanglu/dsh-ssh-bridge 。
插件介绍
Running commands on remote hosts from inside an agent loop usually means either hardcoding a fleet of targets in config or pasting passwords into the chat history—neither is secure nor flexible. dsh-ssh-bridge collapses that into one step: you type user@host[:port] and a password into a local browser page, an SSH-encrypted channel is established, and the credential never touches the conversation log or disk.
Once mounted as a DSH plugin, the agent gains three tools—router_exec, router_disconnect, and router_reconnect—letting it run one-shot commands, write lines into an interactive terminal, and disconnect or re-authenticate with stored in-memory credentials. The browser page renders ANSI colors, shows a live status log, and behaves like a standard SSH client: typing exit tears down the whole session. The bridge core runs standalone without DSH, so it also works in pure-script or local-debugging setups.
Built for developers and SREs who need their agent to operate on arbitrary SSH targets without baking logins into prompts or config files. Any host speaking standard SSH is in scope—no preset list, no extra client, just a browser tab and a tool call.
使用场景
- Agent 通过工具在任意 SSH 主机上执行命令,无需预设目标列表
- SRE 在浏览器页面输入凭据后与生产服务器进行交互式排障
- 脚本或自动化流程经由本地回环 API 安全调用远端命令,密码不落盘不入库
适合人员
- 使用 DSH 智能体且需要远程 SSH 操作的开发者
- 希望将凭据隔离在聊天记录之外、只走本地加密通道的 SRE
- 需要本地调试远端服务且不想在提示词中硬编码主机的运维工程师