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 实现。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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 工具执行命令、传文件;你在侧栏管主机与授权。密钥不进模型上下文。

Version DSH License Stars Issues

这是什么 • 核心特性 • 快速开始 • 侧栏 • 模型工具 • 安全 • 开发 • 许可证与作者

这是什么

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 →

← 上一个 Prev awesome-dsh-plugins 下一个 Next dsh-plugin-mesh →