Back to directory

dsh-ssh-workspace

In a curated listMaintenance: Active

siqyka/dsh-ssh-workspace

Use a remote SSH directory as a DSH workspace so read/write/edit/bash/glob/grep run directly against the remote host.

View on GitHub
$ dsh plugin add dsh-ssh-workspace

14

stars

6

forks

JavaScript

Language

MIT

License

2026-09-30

Created

2026-11-22

Last push

MIT-licensed DSH plugin that puts an SFTP backend behind `ctx.fs` so a directory on an SSH host becomes a real DSH workspace, with `ssh_workspace_*` tools for hosts, mount, remote exec, transfer and port forwarding.

DSH integration

Native runtime

Author-claimed

Safety audit

Unaudited

Last verified

2026-11-23

License

MIT

01What can it help you accomplish?

  • Work on a directory that lives on an SSH host as if it were a local DSH workspace

    `read` / `write` / `edit` served over SFTP against the remote files, `bash` / glob / grep executing on the remote host, and sessions, the file tree and `@` references all pointing at the remote directory

    Developers running the DSH desktop client while the code actually lives on a remote server, VM or container host

  • Keep SSH hosts and remote workspace mounts managed from inside DSH

    A host panel that adds / edits / deletes records in `$DSH_HOME/dsh-ssh.json`, existing `~/.ssh/config` Host blocks reused read-only, and a directory browser that mounts the chosen remote folder as a workspace

    Operators and developers who move between several servers and do not want to maintain a second host list

  • Move files to and from the remote host and reach services listening on it

    `ssh_workspace_transfer` for SFTP copies in both directions, `ssh_workspace_forward` / `ssh_workspace_unforward` for a remote port mapped to an openable local URL, and `ssh_workspace_shell` for a persistent remote shell

    Developers who debug a remote service, read logs or pull artifacts without leaving the DSH session

02How to install into DeepSeek Harness

Prerequisites

  • An SSH host reachable from the machine running DSH, with key or password auth; hosts already declared in `~/.ssh/config` are picked up, so configured hosts need no re-declaration
  • Nothing extra on the remote host: no agent and no third-party filesystem — plain SSH is enough, and ripgrep / git only matter for remote search and change tracking
  • For a source checkout, `ssh2` is a direct dependency that `git clone` does not bring along — run `npm ci` first

Installation steps

  1. 01

    Open the official DSH desktop client and go to the 「设置」 → 「插件」 page (or the plugin entry in the left-hand nav)

  2. 02

    In the plugin manager's install box, install the npm package `@shiqyka/dsh-ssh-workspace` — optionally pinned, e.g. `@shiqyka/dsh-ssh-workspace@0.2.8` — or paste the repository URL `https://github.com/siqyka/dsh-ssh-workspace` to install from Git

  3. 03

    Restart the client once the install finishes

  4. 04

    In the 「远程工作区」 panel confirm a host (add one the first time), then 「添加工作区 → 新建远程工作区」, pick the host, browse to the remote directory and mount it, and start a session inside that workspace

Verify the integration

  • Click 「测试连接」 on a host card: it only probes reachability — it connects and immediately releases, leaving no connection behind — and reports the outcome in a toast
  • `ssh_workspace_status` lists the current mounts / disabled workspaces, connections, forwards and persistent sessions

Rollback

  • `ssh_workspace_unmount` disables a remote workspace: records and sessions are kept by default and the action is reversible
  • `ssh_workspace_enable` re-mounts a disabled workspace and un-archives its sessions
  • `enabled: false` is the plugin's master switch; on the passthrough side `false` / `[]` turns local-path passthrough off and needs a DSH restart

03DSH integration and capability boundaries

DSH integrationNative runtime

Native DSH plugin installed from the client's plugin manager as npm `@shiqyka/dsh-ssh-workspace`: it grafts an SFTP backend onto the deployment's existing `ctx.fs` for `ssh://<alias>/<path>` workspaces and registers `ssh_workspace_*` agent tools

  • SFTP file I/O behind `ctx.fs`

    an `ssh://<alias>/<absolute path>` workspace path→`read` / `write` / `edit` served over SFTP with full error semantics (`FS_STALE_VERSION`, `FS_AMBIGUOUS_EDIT`, `FS_NOT_TEXT`, …), atomic writes, CRLF fidelity and 256 KiB streaming reads for large files

    remote writes are fenced to mounted remote workspaces — an outside path returns `FS_OUTSIDE_WORKSPACE`「仅可查看」 (view-only) sessions also block remote writes with `FS_SANDBOX_DENIED`; reads stay unrestricted
  • Remote execution: shell, glob, grep and change tracking

    a shell command, glob or grep issued from an `ssh://` session→POSIX-shell execution on the remote host (one-shot, background, timeout and abort following DSH's process contract), real `rg` results, and remote `git` turn snapshots for the deliverables panel

    remote commands run as the remote login user with its full privileges, outside the local file sandboxa remote host without ripgrep fails with exit code 127 plus an install hint; without git the change panel degrades to offper-file before/after diff capture does not work for remote edits — a `degraded` diagnostic is recorded instead of failing silently
  • `ssh_workspace_*` agent tools

    host alias, remote absolute path, shell command, local / remote file paths, remote port→host listing, mount, unmount, enable, status, remote exec, persistent shell, SFTP transfer, port forward and unforward

    a forward holds a local port until `ssh_workspace_unforward` releases ita persistent shell keeps its state across calls
  • Host manager and remote workspace UI

    host alias, private-key path, authentication method, notes→host records written atomically to `$DSH_HOME/dsh-ssh.json`, credentials encrypted with AES-256-GCM under `$DSH_HOME/dsh-ssh.key`, plus a remote file tree, `@` completion, drag-to-upload and a dedicated remote-workspace marker in the sidebar

    editing a host takes effect immediately and drops that alias's old connection`~/.ssh/config` hosts are shown read-only — the panel never writes that filedeleting a host does not unmount its workspaces; they simply become unreachable

04Who is it for? When not to use it?

Good for

  • Developers running the DSH desktop client while the code actually lives on a remote server, VM or container host
  • Operators and developers who move between several servers and do not want to maintain a second host list
  • Developers who debug a remote service, read logs or pull artifacts without leaving the DSH session

Not for

  • `ProxyCommand` is the one refused directive: it is arbitrary local command execution and the config file is data, so hosts using it are rejected at parse time with the reason instead of silently falling back to a direct connection. `ProxyJump` is supported — one connection per hop, up to 8 hops.
  • Where a shell command runs is decided by `workdir`: with an `ssh://` workspace, `pwsh` / `bash` execute on the remote host under POSIX shell semantics and the remote login user's full privileges, outside the local file sandbox; commands with a local `workdir` stay inside it.
  • The first connection pins the server host-key fingerprint (TOFU); any later change is refused and both fingerprints are reported, so a reinstalled host needs 「忘记主机密钥」 in the panel before it connects again.

05Compatibility, maintenance and safety notes

  • `ProxyCommand` is the one refused directive: it is arbitrary local command execution and the config file is data, so hosts using it are rejected at parse time with the reason instead of silently falling back to a direct connection. `ProxyJump` is supported — one connection per hop, up to 8 hops.
  • Where a shell command runs is decided by `workdir`: with an `ssh://` workspace, `pwsh` / `bash` execute on the remote host under POSIX shell semantics and the remote login user's full privileges, outside the local file sandbox; commands with a local `workdir` stay inside it.
  • The first connection pins the server host-key fingerprint (TOFU); any later change is refused and both fingerprints are reported, so a reinstalled host needs 「忘记主机密钥」 in the panel before it connects again.
  • The plugin's HTTP routes accept loopback only by default (`127.0.0.1` / `::1` / `localhost`); a LAN deployment needs `allowLan: true` (private ranges only — public addresses stay rejected), a `Host` header naming a real local listen address, and `allowedHosts` for any name the machine does not know.
2026-09-302026-11-20Not specified by the author

MIT · active, last push 2026-11-20, no GitHub releases (npm `@shiqyka/dsh-ssh-workspace@0.2.8`)

06Frequently asked questions

How do I install dsh-ssh-workspace into DeepSeek Harness?

Open the DSH desktop client's 「设置」 → 「插件」 page and install the npm package `@shiqyka/dsh-ssh-workspace` (write `@shiqyka/dsh-ssh-workspace@0.2.8` if you want to pin the version), or paste `https://github.com/siqyka/dsh-ssh-workspace` to install from Git, then restart the client. A source checkout needs `npm ci` first because `ssh2` is a direct dependency.

What does it add to a DSH session?

A remote workspace: paths of the form `ssh://<alias>/<absolute path>` are routed through `ctx.fs` to the plugin's SFTP backend, so `read` / `write` / `edit` hit remote files and `bash`, glob and grep run on the remote host. On top of that come the `ssh_workspace_*` tools for host listing, mount / unmount, status, remote exec, persistent shell, file transfer and port forwarding.

Where are hosts and passwords stored?

Host records live in `$DSH_HOME/dsh-ssh.json`; without that file the plugin falls back to the concrete `Host` blocks in `~/.ssh/config`, read-only. Passwords and key passphrases are encrypted with AES-256-GCM in the `secrets` section, keyed by `$DSH_HOME/dsh-ssh.key` (readable by your user only), and never travel back to the browser.

Do I still have to sync files or forward ports myself?

No. Mounting a remote directory already gives the session remote read and write access; when you need copies, `ssh_workspace_transfer` moves files over SFTP outside the conversation, and `ssh_workspace_forward` maps a remote port to an openable local URL until `ssh_workspace_unforward` releases it.

How do I take a remote workspace back out?

Call `ssh_workspace_unmount`: records and sessions are kept by default and `ssh_workspace_enable` restores them; ticking 「同时删除记录」 archives the sessions and deletes the record. `enabled: false` is the plugin's master switch, and turning local-path passthrough off (`false` / `[]`) needs a DSH restart.

08Data and sources

  • Author-claimedgithub.com9aac799f7a96…

    **把一台 SSH 主机上的目录,当作 DSH 工作区使用。**

  • Author-claimedgithub.com9aac799f7a96…

    DSH 的所有文件操作都走 `ctx.fs`(`@deepseek-ai/dsh-fs`)这一个服务抽象。

  • Author-claimedgithub.com9aac799f7a96…

    本插件在这个抽象上增加了一个「远端半边」:

  • Author-claimedgithub.com9aac799f7a96…

    | `ssh_workspace_hosts` | 列出可用主机(store + `~/.ssh/config` 候选) |

This page is generated from the project’s public documentation, repository metadata and a structured parse of DSH Plugins; last verified on 2026-11-23. Found an error? Submit a correction.

🏆

Best DeepSeek Harness Plugins

Twelve plugins worth installing first — picked from the whole catalog, across every category.

DSH Plugins is an independent community directory of DeepSeek Harness plugins. Not affiliated with or endorsed by DeepSeek. Third-party plugins are not security-audited — review the source before installing.

New DeepSeek Harness plugins, weekly. No spam.