CrazyShout/dsh-ssh-remote

Plugin插件 Native原生 ⭐ 6 MIT Notifications & Remote通知与远程

DeepSeek Harness的SSH远程工作区:浏览/读取/写入远程文件、运行远程命令,并带有连接状态指示点。

Project Overview项目介绍

This is a native SSH remote workspace plugin built exclusively for DeepSeek Harness. It discovers preconfigured hosts from your local OpenSSH configuration, lets you select remote directories via the native "Add Workspace" flow, and routes all DSH native file, shell, and terminal operations to a versioned remote helper. You can install it directly via the DSH CLI with the command dsh plugin --profile web add 'github:CrazyShout/dsh-ssh-remote', then restart the DSH web client to enable it. After installation, you can configure connections in the settings panel or select remote hosts directly when adding a new workspace.

All SSH connection logic is delegated to your local OpenSSH installation, so the plugin natively supports all standard OpenSSH features including host aliases, proxy jumps, and multiple authentication methods without reimplementing any of these features. On your first connection to a remote host, the plugin automatically uploads and installs the matching version of the helper, verifies its checksum, and starts it without requiring sudo access or remote package manager commands. This plugin is intended for DSH users who need to work on code hosted on remote POSIX servers while retaining the native DSH workflow experience locally.

To use this plugin, you need Node.js 22 or higher installed locally, DSH version 0.1.1-rc.2 or a newer compatible 0.1.x release, a preconfigured OpenSSH host that you can connect to via batch mode, and a remote POSIX system with Python 3.9 or higher. Linux users need bubblewrap installed for proper process and PTY sandbox isolation, while file operations are always restricted with dirfd limits regardless of the platform. Before your first use via the plugin, you should run ssh <your-host-alias> once to verify the host fingerprint per your OpenSSH security policy. The plugin is released under the open source MIT license.

这是一个专为 DeepSeek Harness 开发的原生 SSH 远程工作区插件,可从本地 OpenSSH 配置中发现已配置的 Host,通过标准「添加工作区」流程选择远端目录,将 DSH 原生文件、Shell 和终端操作路由到远端版本化 helper。它的架构借鉴了 Codex App Server 的设计原则,包含版本化多路复用控制通道、健康检查、断线恢复等特性,不声称与 Codex 协议兼容。

本插件将所有 SSH 连接配置逻辑都交给本机 OpenSSH 处理,原生支持 Host 别名、代理跳转、各类认证方式,不会自行实现一套残缺的配置逻辑。首次连接远程主机会自动安装匹配版本的 helper,完成 SHA-256 校验后启动,不需要额外使用 sudo 或调用远端包管理器。用户只需提前配置好 OpenSSH Host,安装插件后即可在添加工作区时选择远端主机使用。

它要求本机安装 Node.js 22 或更高版本、DSH 0.1.1-rc.2 或更新的 0.1.x 版本,远端需要 POSIX 系统和 Python 3.9 以上,Linux 还需要 bubblewrap 实现沙箱隔离。本插件采用 MIT 许可开源,遵循严格的安全模型,对权限、输出和认证都做了严格限制。首次使用前需要手动运行一次 ssh <Host别名> 按 OpenSSH 策略核对主机指纹。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
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-remote

把 CrazyShout/dsh-ssh-remote 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-ssh-remote

English | 中文

面向 DeepSeek Harness Web / Desktop 的 Codex 风格 SSH 远程工作区插件。它从本机 OpenSSH 配置发现 具体 Host,通过标准「添加工作区」选择远端目录,并把 DSH 原生文件、Shell 和终端操作 路由到远端的版本化 helper。

0.3.0 的架构

默认数据平面已经改为:

本机 DSH Web
  └─ dsh-ssh-remote
      └─ system OpenSSH(保留原始 Host alias)
          └─ 按内容寻址的 Python helper
              └─ 用户私有 Unix-socket daemon
                  ├─ dirfd 隔离文件系统
                  ├─ 进程 / PTY supervisor
                  └─ 可恢复 client session

这个设计借鉴 Codex App Server 中很有价值的原则:版本化多路复用控制通道、健康检查、 能力协商、有界输出、稳定资源 ID 和断线恢复,但不会把两者描述成兼容协议。参考 Codex App Server 官方文档和 ADR-0004。

当前已经实现:

  • OpenSSH 是唯一连接事实来源:Host、Include、Match、ssh-agent、Keychain、 证书、FIDO/PKCS#11、ProxyJump、ProxyCommand、known_hosts 和 host-key 策略都交给 本机 ssh,插件不再复制一套残缺配置。
  • 自动安装 helper:插件包携带 helper,按 SHA-256 存入用户私有版本目录,经 SSH stdin 上传并校验后发布;不用 sudo、curl | sh、postinstall 或远端包管理器。
  • 统一添加工作区:本地目录与 SSH alias 共用原生选择器;远程浏览、新建目录和路径 校验默认都走 helper。
  • 版本化远端文件:读取返回稳定 stat token 或 SHA-256+文件身份强 token;写入使用 同目录临时 inode、fsync、版本复核、原子发布、no-replace 创建和 operationId 去重。
  • 远端 Shell:模型使用的 ctx.shell 在本地 sandbox argv 生成前完成远程路由,避免 把 macOS 的 sandbox 命令错误拿到 Linux 执行;前台和后台进程都有有界输出并可跨 connector 重连继续读取。
  • 真实远端 PTY:helper 使用远端账号的登录 shell,并管理 PTY、前台 PGID、signal、 输出 cursor、内部 resize、TERM→KILL 退出和资源回收。
  • 远端 sandbox:Linux 上的 read-only / workspace-write 进程与 PTY 使用 bubblewrap。缺少可验证 runner 时失败即关闭,绝不静默升级为远端账号完整权限。
  • 恢复和诊断:私有 daemon 会在恢复窗口内保留 workspace、文件读取 cursor、进程和 PTY。设置页展示安装中、连接中、已连接、能力受限、重连中、错误,以及版本、能力、 Retry、Disconnect 和已脱敏诊断。
  • 显式兼容路径:旧 DSH host 设置仍可使用加固后的 ssh2/SFTP 实现;helper 失败后 不会静默切换过去。

当前 DSH 上游边界

0.3.3 已验证 DSH 0.2.0-rc.2。取消的连接探测即使遇到 broken pipe,也会回收 daemon 连接计数;握手阶段的连接级错误保留原始错误代码和提示。早期版本的 dsh-settings register API 和 ShellExecutor 的 run/start 接口已分别被标准 Cordis Config 和单一 execute() 方法取代,插件已随之适配。SSH 上传中断只会令本次连接失败。 当前公开接口仍带来以下用户可见限制:

  1. Harness Workspace 必须是真实本地目录,因此插件仍会创建一个很小的本地 anchor, 只把这个 anchor 及其后代映射到 ssh://alias/remote/path。远端源码不会复制进去。
  2. 底层 SubprocessRuntime.spawn() 是同步接口,必须立即返回本机 PID。直接使用该底层 seam 的调用仍保留「每进程 system SSH」兼容路由;正常模型 Shell 与终端走 helper。
  3. 当前 terminal tool 没有 resize verb。helper 与 backend 已实现 resize,但 DSH 暂时 无法让模型发出请求。
  4. DSH 历史、配置、插件和 agent loop 仍运行在本机。本插件提供远端执行/文件平面, 不会虚构第二套 Harness 控制面。
  5. DSH listDir() 暂无分页契约;标准 FS 遇到超过 1000 项的目录会诚实失败,工作区 选择器则使用有界的「只扫描目录」模式,因此大源码目录仍可导航。

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-mcp-mgr 下一个 Next dsh-router-traework →