@looooong/dsh-ssh

版本 0.4.1发布 2026-11-25仓库 longguanhong0755/dsh-ssh
3/4装得上 · 启动通过

把远程机器变成 DeepSeek Harness 的工作区:SSH、WSL、Docker,一个列表管起来。

内容与创作依赖 1peer 1MIT完整性未校验
pnpm add @looooong/dsh-ssh

安装前须知

Node 要求
>=22
package.json engines
peer 依赖
1 个
由宿主提供,不随包安装
宿主服务
无需额外服务
装完由真宿主启动一次
入口 / 补丁
lib/index.js
bundle 已声明 · patch 随包

四段检测

逐层记录
收录门槛通过
manifest 是否声明 DSH 依赖或 dsh.bundle
离线审查未通过
静态结构包内清单、补丁文件与入口声明是否完整
无 high / critical 命中
未通过
配置组合装入一次性 DSH_HOME 后配置树能否合并通过
源码审查静态阅读源码,检查危险调用与数据外发
计数单位 finding,非包数。
通过
真机安装通过
真机执行 pnpm 安装,退出码为 0 且 node_modules 生成
实测宿主版本 0.2.2-rc.5
加载实测通过
安装完成后由真实宿主启动一次,检查入口是否激活

检测结论明细

共 11 次命中
收录判定1 条规则 · 1 次命中
发布者与仓库所有者不同l0-author-repo-differs
静态结构6 条规则 · 6 次命中
读取凭据/密钥文件路径credential-path-read
lib/client.js:6025h('p', { className: 'rem-section-title' }, t('z.sshHosts'), h('span', { className: 'rem-section-mono' }, '~/.ssh/config')),
执行非字面量代码dynamic-exec-nonliteral
scripts/anchor-doctor.mjs:151return new Function('isDeepStrictEqual', `${stubs}\n${body}\nreturn { assertV4LifecycleRelationships }`)(isDeepStrictEqual)
写入开机/登录自启动位置persistence-write
lib/remote/deploy.js:278await this.pool.run(host, `systemctl daemon-reload && systemctl enable ${q(workspace.unit)} >/dev/null 2>&1`, { timeoutMs: 60000 })
启动子进程child-process-spawn
bin/install.mjs:30if (process.platform === 'win32') execFileSync('cmd', ['/c', 'rmdir', linkPath], { stdio: 'ignore' })
代码中存在外部 URLremote-url-reference
lib/client.js:294http://127.0.0.1:{port} http://127.0.0.1:{port}(已建立) http://www.w3.org/2000/svg https://registry.npmjs.org https://registry.npmmirror.com
提到凭据路径但没有读动作sensitive-path-reference
lib/client.js:157'z.advancedHint': '从 ~/.ssh/config 填充主机、端口、用户名和私钥路径;手动修改任一字段将解除关联。',
源码审查2 条规则 · 4 次命中
进程以非零码退出×2l3.nonzero-exit
源码审查结果
运行时抛出异常×2l3.runtime-error
源码审查运行日志启动时找不到依赖 ssh2,检测环境里没有提供它

依赖结构

2 项
ssh2直接依赖随包安装
@deepseek-ai/cordispeer由宿主提供