@deepwhale-cn/dsh-ssh-console:给 agent 一条受控的 SSH 执行通道

feely0208 维护的 DSH 插件 @deepwhale-cn/dsh-ssh-console,把远端执行做成侧栏面板:主机白名单来自 ~/.ssh/config,默认只能用别名,放宽到任意 user@host 须显式设 DSH_SSH_ALLOW_ANY=1;以 BatchMode=yes 只走密钥,需要密码直接报错;命中 rm -rf / mkfs / dd / shutdown / chmod 777 / 强推 / npm publish 等模式时返回需要确认,带 confirm=true 才执行;每次执行、拒绝、待确认都写入 ~/.dsh/ssh-console-audit.jsonl,面板显示退出码、耗时、stdout/stderr 与最近 20 条审计。安装命令 dsh plugin --profile web add @deepwhale-cn/dsh-ssh-console,MIT 许可,dsh >=0.1.0-rc.6 <0.3.0、node >=18。正文还写明了它不是完整终端、不保留 shell 状态、默认超时 30 秒最长 120 秒、审计是明文 JSONL 等边界。

阅读全文