ZhangFengshun/dsh-remote-ssh
DSH web plugin: VSCode Remote-SSH-like remote development (SSH, remote workspace, file explorer, integrated terminal)
Project Overview项目介绍
This is a native DeepSeek Harness (DSH) plugin modeled after VSCode Remote-SSH, designed specifically to connect DSH to remote servers and high-performance computing clusters via SSH. It lets users browse and edit remote files directly in DSH’s built-in Files tab, and launch interactive SSH terminals that automatically navigate to the working directory of the remote workspace. It supports both key and password authentication, ProxyJump for jump hosts, and one-click import of existing connections from your local ~/.ssh/config file. It also exposes 13 dedicated model tools that automatically inherit connection context from active remote workspaces, so you don’t have to manually fill in connection parameters when calling them from DSH’s LLM interface.
To install the plugin, run the one-line command provided in the DSH CLI, no extra API keys or access tokens are required. After installation completes, you just need to restart DSH to activate the plugin. Note that this plugin depends on dsh-better-sidebar, which provides the file system API it needs, and it must be loaded after dsh-better-sidebar in your plugin bundle list. The basic workflow is three simple steps: add and test your connection, select a remote directory to create a DSH workspace, then start working directly with your remote resources. This tool is ideal for AI researchers running large training jobs on remote supercomputers.
The plugin is released under the open source MIT license, so it is free to use and modify for any purpose. It requires DSH version 0.1.5-rc.1 or newer, and dsh-better-sidebar version 0.15 or newer to work correctly. Some older versions of dsh-better-sidebar have a known compatibility issue that prevents the file tab from loading, so users need to switch to v0.18.0 or a fixed build if they encounter this error. If you get a version mismatch error during installation, just wait a few minutes and retry, as this is usually caused by npm’s cache freshness policy. If you have any issues, check the detailed troubleshooting section in the README for common fixes.
这是一款原生DeepSeek Harness(DSH)插件,对标VSCode Remote-SSH,功能是让用户通过SSH连接远程服务器与超算集群,可直接在DSH内置的「文件」「终端」页签中操作远程资源,支持密钥/密码认证、ProxyJump跳板机,还能一键导入本地~/.ssh/config中的连接配置。
安装方式是通过DSH官方插件命令行一键完成,无需额外配置API密钥或token,安装后仅需重启DSH即可使用。使用流程分为三步:添加连接配置,选择远程目录创建工作区,进入后即可直接操作,适合需要在本地DSH环境开发调试远程超算任务的专业AI研究者和经验丰富的后端开发者。
本插件采用MIT许可证开源免费,依赖dsh-better-sidebar版本不低于0.15,要求DSH核心版本不低于0.1.5-rc.1。部分旧版本dsh-better-sidebar存在兼容性问题,需按文档提示切换到兼容版本,安装时若提示版本不匹配,等待数分钟后重试即可解决。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-remote-ssh(ZhangFengshun/dsh-remote-ssh)
仓库:https://github.com/ZhangFengshun/dsh-remote-ssh
本站详情页:https://www.yhbd.top/plugins/zhangfengshun-dsh-remote-ssh/
本站登记:类型 client · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 26 · 最近提交 2026-09-29 · 主语言 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 更稳。
- 26 stars - an early-stage project星标 26,属于早期项目
- Desktop client: installation downloads an executable - verify the publisher and checksums桌面客户端:安装会下载可执行文件,请核对发布者与校验和
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 @zhangfengshun/dsh-remote-ssh@2.4.18
把 ZhangFengshun/dsh-remote-ssh 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
@zhangfengshun/dsh-remote-ssh
English | 中文
类 VSCode Remote-SSH 的 DSH 插件:通过 SSH 连接远程超算 / 服务器,在 DSH 内置「文件」「终端」页签中直接操作远程文件和终端。
目录:功能 · 截图 · 安装 · 使用 · 代码示例 · 模型工具 · 命令超时与恢复 · 兼容性 · 故障排查 · 原理 · 缓存与一致性 · 许可证
功能
| 能力 | 说明 |
|---|---|
| 🔌 SSH 连接 | 密钥 / 密码认证,ProxyJump 跳板机,~/.ssh/config 一键导入 |
| 📂 远程文件 | 内置「文件」页签直接 SSH 读写远程文件,无需同步 |
| 💻 远程终端 | 内置「终端」页签自动检测远程工作区,SSH 交互式终端,落在工作区对应的远程目录(与 VSCode Remote-SSH 一致) |
| 🌐 远程工作区 | 选择远程目录创建原生工作区,一键进入远程环境 |
| 🤖 模型工具 | 13 个 remote_ssh_* 工具,会话感知免填连接参数;命令级超时 + remote_ssh_kill 兜底恢复 |
🗂️ @ 引用补全 |
远程工作区会话里 @ 补全列远端文件(git 仓库走 git ls-files,实测 0.1s;非 git 用有界 find;索引缓存 + 900ms 查询预算,超时降级不卡输入框) |
| ⚡ 打开提速 | 单往返合并读 + raw 文本快路径 + 结果缓存(LRU + 5s TTL):首开 ≈1.31×,TTL 内重复打开 0 往返,过期复验 ≈5×(真实超算实测);remote_ssh_exec 连接复用 ≈15× |
截图
设置 → 远程连接:连接配置(密钥 / 密码 / ProxyJump 跳板机)· 连接测试 · 从 ~/.ssh/config 一键导入

内置「文件」页签:直接浏览远程主机文件(右侧文件树即远程目录,编辑保存直写远程)

内置「终端」页签:自动 SSH 到远程超算(图为 SLURM 作业调度环境);左侧会话即模型免填调用 remote_ssh_* 工具

安装
前置要求
| 项 | 要求 |
|---|---|
| DSH | ≥ 0.1.5-rc.1,含 0.2.0-rc.1(最新官方线;0.1.2 稳定线请用 v0.18.1 时代的插件版本)。插件声明的 peer 范围显式列出每条已验证版本线,因此新版 harness 的兼容性门(见安装)不会拦住它 |
| dsh-better-sidebar | ≥ 0.15(本插件依赖其 /sidebar/api/ 文件 API 与 0.24 的 open.external「打开方式」端点;0.23 起文件树改为批量 fs.trees 并新增 fs.mkdir,2.4.18 起已适配)。可以只装本插件:2.4.18 起未安装它时不再卡住 web boot(见下方说明),但「文件」页签的远程读写与编辑器页签也随之不可用 |
| 本机 SSH 客户端 | Windows:系统自带 OpenSSH(%SystemRoot%\System32\OpenSSH\ssh.exe);Linux/macOS:openssh-client |
| 远程主机 | 任意标准 sshd(超算 / 服务器 / 跳板机均可) |
一条命令安装(无需 token、API Key 或额外配置):
dsh plugin --profile <name> add @zhangfengshun/dsh-remote-ssh@2.4.18
安装后重启 DSH。@zhangfengshun/dsh-remote-ssh 必须在 bundles 列表中排在 dsh-better-sidebar 之后。
只装本插件、不装
dsh-better-sidebar(或它加载失败)会怎样? 2.4.18 起可以正常启动:客户端只把内核服务(slots/locale)声明为硬依赖,better-sidebar 改走子 fiber 软注入 —— 装了才注册远程文件编辑器页签,没装就静默降级。此时能用:设置页「远程连接」(SSH 连接与远程工作区)、模型工具(remote_ssh_*)、远程终端集成、@远程文件补全;不能用:「文件」页签的远程读写与编辑器页签 —— 那套/sidebar/api/fs.*通道属于 better-sidebar(内核原生侧边栏走的是它自己的/api/*,本插件不接管)。1.0.0 之前的旧版插件在这里会永久 pending,前端直接报web boot: 1 entry did not activate/pending (waiting for service: betterSidebar)(issue #18)。另外 better-sidebar 缺席时宿主会打一条patch: entry "better-sidebar" not found的 warn ——dsh-app-boot对缺席的 patch 目标无条件告警,属正常,可忽略。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
chenw2759-wq/dsh-IDE
caoyiwei850/dsh-ssh-ops
jingyi0605/Codingns4DSH
PeterBon/dsh-hooks
Jesse-njx/dsh-chatnode-wechat
LAN-TINA-WS/dsh-windows-shell-policy