返回目录
模型与 MCP 插件

dsh-ssh

UynajGI/dsh-ssh

SSH remote-execution plugin for DeepSeek Harness: ProxyJump chain, SFTP filesystem, subprocess and PTY over ssh2

Stars
18
Forks
8
Issues
1
更新
9 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:UynajGI/dsh-ssh

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-ssh

English | 中文

npm version license node version GitHub stars

SSH remote-execution plugin for DeepSeek Harness. Runs Bash, file tools, PTY terminals and LSP on a remote host over one SSH connection — ProxyJump chains, SFTP, full auth. Built on ssh2.

Add a workspace over SSH

Install

dsh plugin --profile web add dsh-ssh

Or use the Web UI: Plugins → Add plugin → dsh-ssh. The bundle mounts the SSH providers and takes over the Add workspace flow — create real connections there. Needs DeepSeek Harness 0.2.x and Node ≥ 22.

A plain npm i dsh-ssh does not select the bundle; add it to dsh.profile.bundles yourself.

Configure

Only needed when composing providers by hand (cordis.yml):

- id: ssh-remote
  name: dsh-ssh
  config:
    host: server.example.com        # or a ~/.ssh/config alias
    username: root
    privateKey: ~/.ssh/id_ed25519   # path or PEM
    cwd: /root/workspace
    # jump:
    #   - { host: bastion.example.com, privateKey: ~/.ssh/id_ed25519 }
Field Default Notes
host username cwd — required (cwd is an absolute POSIX path)
port 22
password privateKey passphrase agent — any auth mode; falls back to ~/.ssh identities
jump [] ProxyJump chain, independent auth per hop
readyTimeout keepaliveInterval keepaliveCountMax 45000 / 30000 / 3 milliseconds
strictHostKeyChecking knownHosts false / [] host-key verification (fingerprints, raw base64 keys, or known_hosts lines)

Web profile: subprocess and fs are single-slot services. Disable the local providers (dsh-subprocess-local, dsh-fs-sandbox) in the profile patch, or remote work silently runs on the harness host.

Limitations

  • Remote pid is always -1; terminate doesn't reap descendants (SSH can't).
  • A dropped SSH chain is reopened on the next operation, and the sidebar's ↻ action rebuilds it explicitly; in-flight work at the moment of the drop still fails.
  • On a Windows host, drive-letter/UNC paths are served by the local filesystem (registry placeholders excepted), while subprocess and terminal execution still use the SSH transport.
  • streamText is text-only; remote sessions aren't added to the local workspace registry.

Development

npm i
npm run typecheck
npm run build   # emits lib/ — the payload the harness loader imports

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度中

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。