framecy/dsh-ssh-shell ↗★ 1

dsh-ssh-shell

DSH plugin: password SSH into a remote host — a natural-language tool (connect/exec/close/status) over a persistent ControlMaster session, plus a browser terminal panel (right-side floating) with a real PTY over WebSocket. 适合需要智能体安全操作远程主机,同时自己能随时打开终端查看的用户。

Package
dsh-ssh-shell
Compatibility
Unverified
Harness peer range
>=0.0.1-rc.1 <0.3.0
Version
0.7.4
License
Apache-2.0
Last updated
Oct 20, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:framecy/dsh-ssh-shell

配置

cordis.patch.yml 提供这些配置项(由插件自身的 bundle patch 声明,profile 级 cordis.patch.yml 可按 id 覆盖):

配置默认说明
controlDir"" → ~/.dsh/ssh-shellControlMaster socket 存放位置
timeoutMs30000单条命令默认超时
controlPersistSeconds"" → yes留空 = master 常驻直到自己死;填秒数 = 闲置这么久后回收
installSkilltrue启动时把自带技能装到 $DSH_HOME/skills/ssh-shell/

远程命令始终逐条向用户确认(走 DSH 的 approval 通道),没有关闭它的开关——这是刻意的:确认是安全边界,不该被一个配置项悄悄关掉。

桌面版(DeepSeek Harness.app):桌面版把页面加载在自有协议 dsh-app://app/ 下, 该 origin 下 location.host 是 "app"、无法用作 WebSocket 主机名。插件改为读取 桌面外壳发布的真实 Host origin(window.__DSH_TRANSPORT__.streamBaseUrl)再拼 /ssh-terminal——桌面版每次启动用 --port 0 随机端口,写死端口会在下次启动就失效。 只有当该 origin 取不到时才回落到旧的固定端口 127.0.0.1:19387;仍可用 window.__DSH_SSH_SHELL_WS_HOST__ = "127.0.0.1: " 手工覆盖。