dsh-remote-ssh: Connect to the Remote DeepSeek Harness Web UI Using Your Existing SSH Configuration

Preface

When developing agents locally with DeepSeek Harness (DSH), the workspace, models, and plugins usually run on the local machine. If DSH is already installed on a remote machine running dsh web, to access that interface in a browser, the tunnel, port, and authentication token must align—manually running ssh -L, digging through logs to find the token, and then pasting the URL involves many steps and is prone to errors.

VS Code’s Remote-SSH has proven that treating ~/.ssh/config as the single source of truth and connecting to a remote development environment with one click is a viable path. dsh-remote-ssh provides a similar capability on the DSH side: the same SSH configuration, the same keys and jump hosts, with the remote providing the DSH Web UI instead of a language service.

The following introduces the plugin’s positioning, capabilities, installation methods, and typical usage, and explains applicable boundaries and security-related conventions. Facts are based on the GitHub repository README.

What is it

dsh-remote-ssh (npm package name @strepsiades/dsh-remote-ssh, current documentation version 1.0.0, MIT license) is maintained by Strepsiades and classified as a DSH client-side plugin.

One-sentence positioning: Select a host from the existing local ~/.ssh/config, establish SSH local port forwarding, and open the DSH Web interface on that machine in a browser. The plugin does not solve the “machine reachability” for the user—if the host itself cannot be reached (not connected to VPN, no jump host, etc.), the connection will fail, which is by design.

Core Features

The capabilities listed in the documentation are as follows, for easy reference to see if they meet your environment.

SSH Config as Host List

  • The host list is read directly from ~/.ssh/config, no need to re-enter in the plugin.
  • You can specify the SSH config path in settings; leave empty to use the default ~/.ssh/config.

Connection and Tunnels

  • The sidebar Remote SSH panel supports one-click connect / disconnect, forwarding remote DSH ports to the local machine via SSH.
  • Uses a pure JavaScript SSH client (ssh2), does not depend on the system ssh binary; the same code path supports macOS, Linux, and Windows.
  • Supports IdentityFile / agent, password, and keyboard-interactive (including MFA); passwords are only used for the current connection and are not written to disk.
  • Supports ProxyJump chained jump hosts; ProxyCommand is not implemented (you should still use the system ssh when you need to execute a local command).

Token and Opening Web UI

  • Reads remote logs via SFTP (does not rely on remote shell interaction), retrieves the latest token for the corresponding port, and verifies it after the tunnel is established to avoid the browser seeing a 401 first.
  • Connection flow (as documented): Build tunnel → Perform HTTP health check via tunnel → Read token → Verify token (expects 303) → Return URL.
  • Status includes Idle, Service not responding, Ready, etc.; when the remote dsh web is running normally, GET / without a session cookie should return 401.

Failure Handling and Remote Start/Stop

  • Port in use, network unreachable, authentication failure, etc., will provide corresponding next-step prompts.
  • Setting Start the remote DSH automatically (default off): If the remote dsh web does not respond during connection, you can try starting it on the remote side.
  • Stop the remote DSH when disconnecting (default off): Whether to stop the remote listening process when disconnected.
  • When a tunnel is established but the service is unresponsive, the error interface can provide Start remotely (start on remote side and wait up to about 30 seconds) or Restart remote DSH (restart after stopping port listening to match the token).
  • When the local port is occupied by a leftover forward, it can provide Clean up port (only terminate the ssh process carrying this plugin’s specific forwarding).

Bonus Skill

  • The repository comes with the remote-dsh-ops skill, making it easy for agents to configure a bare machine as a manageable remote DSH host (details see repository skills/).

Environment and Requirements

Side Requirements
DSH 0.2.1-rc.5 or later (dsh >=0.2.1-rc.5 <0.3.0 in package.json engines, Node >=18)
Local Machine macOS / Linux / Windows capable of running Node; no need to install SSH client separately
Remote OpenSSH service on macOS / Linux; Windows can also run DSH, but the start/stop commands issued by the plugin are still POSIX

The remote dsh web token is written to ~/.dsh-web.log by default (for Windows remote, please refer to README for %USERPROFILE%\.dsh-web.log or .dsh\logs\web.log).

Installation and Enabling

DSH does not have an “official app store”; any HTTPS address providing a format-1 index.json can serve as a plugin index. The index address published by this repository is as follows.

Recommended: Install via Discover

  1. In DSH, enable Plugins → Experimental plugins → Custom plugin indexes.
  2. Open Discover, add the index URL:
https://cdn.jsdelivr.net/gh/Strepsiades2/dsh-remote-ssh@main/market/index.json

(Backup: https://raw.githubusercontent.com/Strepsiades2/dsh-remote-ssh/main/market/index.json)

  1. Install from Discover; the bundle will be automatically enabled when installing on the plugin page.

Manual Installation

dsh plugin add @strepsiades/dsh-remote-ssh

Then open Plugins and turn on the Remote SSH switch. Simply adding dependencies will not automatically select the bundle; if there is no Remote SSH in the sidebar, you need to reload DSH.

Before installation, it is recommended to check the GitHub source code and the MIT license yourself; the plugin runs under the current DSH process permissions, reads SSH configuration, establishes tunnels, and accesses remote files (SFTP); permissions and trust boundaries need to be evaluated by the user.

Typical Usage

The steps given in the README can be reproduced directly:

  1. Sidebar → Remote SSH → +
  2. Select a host from SSH config
  3. Click Connect
  4. Click the external link icon to open the remote DSH UI in a browser

Settings and Per-host Options

Global Settings

Setting Meaning
SSH config path Empty uses ~/.ssh/config
Default remote port Fallback port for new hosts and opening, default 3000
Start the remote DSH automatically Default off
Stop the remote DSH when disconnecting Default off

Per-host

Option Meaning
Remote DSH port The port remote dsh web listens on
Local port Leave empty for auto-assignment; a fixed local port helps browser cookies bind to hostname:port
Web token Usually left empty, read from remote logs on connection; only fill in when using a fixed token
Start command Optional; used when the plugin needs to start dsh web, {port} will be replaced

The default start command parses the local dsh (PATH or ~/.local/dsh/node_modules/.bin/dsh), uses setsid to detach from the terminal when available, and writes logs to ~/.dsh-web.log.

How it Works and Security (Summary)

  • On the Host side, register /api/remote-ssh/* within the DSH authenticated /api channel to read/write a small registry and drive SSH and token parsing; the Client side renders the panel and accesses the same-origin API.
  • Tokens are kept only in memory; the registry file permissions are 0600.
  • Custom routes are verified by DSH connection layer’s Host/Origin and owner principal; SSH targets starting with - are rejected to prevent registry item injection of ssh options.
  • The plugin does not read or copy private keys; which key to use is determined by ~/.ssh/config.
  • Host keys use trust-on-first-use, written to ~/.dsh/ssh-known-hosts.json; if they don’t match, delete the old entry and reconnect.
  • Browser cookies are issued by the remote dsh web, with a default validity of 30 days.

Applicable Scenarios and Notes

More Suitable

  • Teams or individuals who already have a mature ~/.ssh/config (including ProxyJump jump hosts) and need to open DSH Web on intranet or cloud machines from their laptops.
  • Want to reduce manual port forwarding and token copying, and need actionable error prompts (port, network, authentication).

Clearly Out of Scope

  • Does not provide Tailscale, frp, reverse tunnels, etc., for “reachability layers”; network paths need to be opened by you.
  • No mobile-specific client, ultimately it is still a browser accessing the remote Web UI.
  • ProxyCommand, full testing of multi-hop ProxyJump, etc., still have gaps documented in the README.

The community directory page (such as the SkillHub plugin page) and the GitHub repository belong to the community ecosystem, with no official affiliation with DeepSeek / Hypothesis; installation and enabling are based on your local DSH and the README above.

Conclusion

dsh-remote-ssh turns “Select host → Build tunnel → Verify token → Open browser” into a fixed process in the sidebar, reusing your existing SSH configuration and key system. If you often run dsh web remotely, it is worth a try.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye