OMSociety/dsh-ssh-tunnel
DSH 插件:多机 SSH 工作台。主机库、按项目授权、右侧栏里的终端与双栏 SFTP。模型用 SSHManager 工具执行命令、传文件;你在侧栏管主机与授权。密钥不进模型上下文。
Project Overview项目介绍
dsh-ssh-tunnel is a community plugin built specifically for DeepSeek Harness, attaching as a single Tab to the right-side panel provided by the dsh-better-sidebar host. It consolidates multiple SSH hosts into a host library, gates access per project workspace, and surfaces an xterm terminal plus a dual-pane SFTP browser inside the central panel, while exposing an SSHManager tool so the model can execute remote commands and transfer files through ssh2. The plugin is installed via dsh plugin --profile web add "dsh-ssh-tunnel@1.0.0" from npm, github:OMSociety/dsh-ssh-tunnel from source, or a one-shot curl/irm script that also patches profile bundles and minimumReleaseAgeExclude; after install the browser page must be reloaded for the "SSH Tunnel" entry to appear in the sidebar, restarting the host alone is not sufficient.
The intended workflow is: add a host in the Host Library (with optional OpenSSH config import), grant it to the current projectPathKey in Project Authorization, then return to Tunnel Sessions and click Connect so the SHA256 host-key fingerprint can be confirmed on first use, after which a Terminal tab opens an interactive shell and an SFTP tab opens the dual-pane browser where the left side mirrors the local project workspace and the right side mirrors the remote filesystem. Once connected the model is expected to invoke SSHManager actions such as exec, sftp_list, sftp_read_text, sftp_upload, sftp_download, plus read_session, send_input, and resize_session for interactive sessions; session_strategy can be reuse_or_create, new, or require_existing, and disconnected sessions become tombstones that can be reconnected with the same id.
Dependencies require DSH 0.1.7-rc.2 up to but not including 0.3.0, the dsh-better-sidebar host, Node.js for tests, and the pinned runtime assets @xterm/xterm 5.5.0 and @xterm/addon-fit 0.11.0, which the host serves from the same-origin whitelist at /dsh-ssh-tunnel/vendor with no CDN fallback. Limits include: no keyboard-interactive auth such as web-MFA bastion flows, exec defaults to 30s and SFTP transfers to 120s, automatic reconnect retries at most three times with 30s ssh2 keepalive, local paths are double-checked lexically and via realpath against the project workspace root, secrets live only in $DSH_HOME/ssh-tunnel/secrets.json with mode 0600 and are never returned by the tool API, and the project is MIT-licensed while crediting LiveAgent purely as a UX reference rather than as a code fork.
dsh-ssh-tunnel 是 DeepSeek Harness 的社区原生插件,挂在右侧栏宿主 dsh-better-sidebar 之上,把多台 SSH 主机收纳到一个统一的主机库,按项目工作区授权后,在中央面板里提供交互式 xterm 终端与双栏 SFTP 文件管理,并通过 SSHManager 工具让模型执行远端命令与文件传输。安装可通过 npm、GitHub 源或一键脚本:dsh plugin --profile web add "dsh-ssh-tunnel@1.0.0"、加 github:OMSociety/dsh-ssh-tunnel 或 curl/irm 远程安装;安装后必须刷新浏览器页面,侧栏才会出现「SSH 隧道」入口。
典型流程:在主机库添加主机(含 OpenSSH 配置导入),到项目授权页给当前工作区勾选主机并保存,再回隧道会话点 Connect,首次连接会弹出主机密钥指纹确认,之后打开终端或双栏 SFTP,并通过 ssh2 内置 exec、sftp_list、sftp_upload、sftp_download 等动作让模型操作远端。适合需要让模型直接登入多台远端机器进行代码部署、日志排查、文件同步,又不想把密钥明文喂给上下文的 DSH 用户。
依赖 DSH 0.1.7-rc.2 至 0.3.0、Node.js 与 dsh-better-sidebar 宿主;运行时钉死 @xterm/xterm 5.5.0、@xterm/addon-fit 0.11.0,由宿主同源下发;密钥仅存于本地 $DSH_HOME/ssh-tunnel/secrets.json(0600),工具结果不返回口令、PEM,HTTP Origin 与 projectPathKey 双重校验。限制包括不支持堡垒机网页 MFA 类键盘交互认证、exec 默认 30s、SFTP 传输默认 120s、意外断线最多自动重连三次;MIT 许可,需注意 LiveAgent 仅作为 UX 参考,本仓库是 DSH 原生 Cordis 实现。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-ssh-tunnel(OMSociety/dsh-ssh-tunnel)
仓库:https://github.com/OMSociety/dsh-ssh-tunnel
本站详情页:https://www.yhbd.top/plugins/omsociety-dsh-ssh-tunnel/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 3 · 最近提交 2026-10-01 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add "dsh-ssh-tunnel@1.0.0"
把 OMSociety/dsh-ssh-tunnel 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
简体中文 | English
DSH SSH Tunnel
DeepSeek Harness 的多机 SSH 工作台:主机库、按项目授权、右侧栏里的终端与双栏 SFTP。
模型用 SSHManager 工具执行命令、传文件;你在侧栏管主机与授权。密钥不进模型上下文。
这是什么
dsh-ssh-tunnel 是 DeepSeek Harness 的社区插件,挂在右侧栏宿主 dsh-better-sidebar 上:把多台 SSH 主机收进一个主机库,按项目授权,然后在中央面板里开交互式终端(xterm)或双栏 SFTP。
它不会把全局 fs / subprocess 换成一个远程盘:远端操作只发生在你显式调用的 SSHManager 工具与面板里,本地文件与远端文件始终是两侧分明的东西。
配套插件是 dsh-git-forge(Git 凭据与 push 策略)。
参考来源
产品形态与部分 UX 参考开源项目 LiveAgent(多机 SSH 主机库、按项目授权、侧栏隧道管理、中央终端 / SFTP 等)。
本仓库是 DSH 原生实现(Cordis host/client、dsh-better-sidebar Tab、SSHManager 工具、DSH 本地密钥布局),不是 LiveAgent 的 git fork,也不内嵌 LiveAgent 源码。对照设计时请遵守 LiveAgent 自身许可证。
核心特性
| 特性 | 说明 |
|---|---|
| 主机库 | 主机增删改、支持导入 OpenSSH 配置;密码 / 私钥(含口令),密钥只存宿主侧 |
| 按项目授权 | 授权 key 是 DSH 会话工作区(projectPathKey);连接前必须先授权,Connect 不会自动写入授权 |
SSHManager 工具 |
远端 exec、SFTP 列举/读写/增删改、上传下载、交互式会话读写;reuse_or_create / new / require_existing 会话策略 |
| 中央面板 | 交互式终端(xterm)与双栏 SFTP:左侧是项目工作区、右侧是远端,可直接上传下载 |
| 断线可续 | 掉线会话留作墓碑,可重连(同一 id)或关闭;意外断开自动重连最多 3 次,ssh2 keepalive 30s × 3 |
| 主机密钥指纹 | 以 SHA256 hex 存入 known_hosts.json,首次连接或指纹变更时在侧栏确认并展示指纹 |
| 本地路径守卫 | 上传 / 下载 / 列举 / 删除的本机路径限制在项目工作区根内,词法 与 realpath 双重校验 |
| 界面双语 | 侧栏与面板随 DSH 界面语言在中文 / 英文间即时切换 |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
caoyiwei850/dsh-ssh-ops
Jesse-njx/dsh-chatnode-wechat
pzc2004/dsh-frostfin
whiteguo233/dsh-openbiliclaw
hanshanyike/dsh-yolo
AX1202/ax-feishu-bridge