Read and search logs and run permitted commands over SSH according to configured permissions.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:452926826/dsh-ssh-logs
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
English | Simplified Chinese
Controlled SSH command execution for DeepSeek Harness, with a Web configuration page and @server composer selection. After installation, add, edit, or remove servers under Settings > Plugins > SSH servers.
Install
Requires DSH >=0.2.2-rc.1 <0.3.0-0 and Node.js 20 or later.
dsh plugin --profile web add github:452926826/dsh-ssh-logs
Restart dsh web and refresh the page. The bundle loads the Host configuration service, Web settings view, and constrained MCP tools.
SSH configuration
Each server has:
- A stable SSH name used in conversations
- Host or IP address, port, and username
- Password authentication, with legacy YAML SSH-key configuration supported
allowedCommands: the executable names permitted only in read-write mode (optional for legacy YAML)deniedCommands: an optional list that always overrides the allowlist
Passwords are stored on the DSH host in $DSH_HOME/ssh-logs/servers.json with mode 0600. Neither the API nor browser returns passwords; editing with a blank password preserves it only if the connection identity is unchanged. Changing host, port, user, jump host, or identity file requires new credentials.
Password authentication cannot be combined with proxyJump; use an SSH key for jump-host connections. Password authentication runs SSH with -F /dev/null, ignoring user and system SSH configuration, including host aliases, proxy commands, and other custom options. Configure the real host, port, user and known-hosts file explicitly. Key-based authentication retains the normal SSH configuration behavior.
Read-only servers expose read_log and search_log for roots configured in YAML. General run_remote_command requires explicitly enabling remote commands (read-write) and a non-empty executable allowlist. The allowlist is not a sandbox: approved programs and arguments can modify files or execute other programs. Never enable this for untrusted users or servers.
Legacy configurations without allowedCommands remain usable for root-based log tools, but no general commands are allowed. A settings-page server overrides a same-name YAML server; configure log roots in YAML on a separate alias. Log-root checks are lexical and do not prevent remote symlinks from escaping the root. Enforce read-only access and path restrictions with server-side account permissions.
Use in conversations
Type @ in the composer and select an SSH server:
@production run tail -n 300 /var/log/nginx/access.log
@staging run grep -nF request-id=abc123 /srv/app/backend.log
The picker inserts @server-name. Use the root-based log tools for read-only servers; general commands require read-write authorization. Credentials never enter conversation context.
Security boundaries
- SSH requires a trusted host key in
known_hosts. Verify the fingerprint through an independent channel before adding it;ssh-keyscanalone does not authenticate a host. - Commands are default-deny and a denial always overrides an allow rule.
- Each request is one command: shell control operators, pipes, redirects, substitutions, and line breaks are rejected.
- Command output has byte and timeout limits.
- Passwords are never returned through the API, MCP server list, or
@candidates. - Production deployments should still use dedicated low-privilege accounts, source-IP restrictions, and server-side permissions.
YAML example
servers:
production:
host: prod-app.example.com
user: log-reader
port: 22
identityFile: ~/.ssh/prod_log_reader
roots:
app: /srv/myapp/logs
allowedCommands:
- tail
- grep
- ls
deniedCommands:
- rm
- sudo
- sh
- bash
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-remote-web-ui★ 10633
Remote control of a dsh web workspace from phone or PC: QR-code pairing through a token-gated channel, SSE real-time sync, and separate mobile and full desktop GUI modes.
zhu1090093659/dsh-web#packages/dsh-ssh★ 10633
SSH ops panel for DSH: web terminal, SFTP transfer with progress, local port forwarding, and one-command cluster execution across hosts; agents share the same host config.
liguobao/ds-harness-remote★ 3719
Multi-device remote access for DeepSeek Harness and supported coding workspaces through an end-to-end encrypted channel, with adaptive Relay/WebRTC transport, device authorization, workspace files, read-only previews, terminals, and optional Codex Remote.
saya-ch/dsh-mobile★ 987
Access DeepSeek Harness from the Android app or a mobile browser with secure LAN and remote connections, persistent device pairing, and a customizable mobile interface.
uumit-ai/dsh-uumit-remote★ 530
Open dsh web from your phone or another computer through a UUMit account, without running your own server or installing another program: a built-in tunnel client connects to UUMit's hosted tunnel, and a panel in the sidebar handles pairing and who can use it (only you, people you invite by link or phone number, or everyone), with revocation. Requires dsh web on DSH >=0.2.1-rc.2.
ZSeven-W/dsh-ios★ 485
A live iOS Simulator or USB-connected iPhone inside the conversation: 22 agent tools for booting, building, driving the UI by accessibility identity or OCR text, list-row actions and SwiftUI preview hot reload, plus a streaming sidebar panel you can tap and drag on.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.