@fish-under-sea/dsh-ssh-fish 0.5.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +23 -0
- package/README.en.md +29 -0
- package/README.md +14 -84
- package/README.zh.md +13 -83
- package/package.json +6 -3
package/NOTICE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
本包是上游 DSH Web GUI 插件全家桶的派生作品(Fork)。
|
|
2
|
+
|
|
3
|
+
来源仓库:https://github.com/zhu1090093659/dsh-web
|
|
4
|
+
来源包名:@linxin666/dsh-ssh
|
|
5
|
+
来源版本:0.4.6
|
|
6
|
+
上游许可:Apache License 2.0(见同目录 LICENSE 全文)
|
|
7
|
+
|
|
8
|
+
修改内容:
|
|
9
|
+
1. 包名与 npm scope 由 @linxin666/dsh-ssh 改为 @fish-under-sea/dsh-ssh-fish。
|
|
10
|
+
2. 源码、配置与文档中引用的包名同步替换为新包名;客户端 bundle 的模块注册 id
|
|
11
|
+
随之重新构建(用于区分上游原版与派生版在本机进程内的挂载身份)。
|
|
12
|
+
3. 移除安装遥测上报:删除 src/telemetry.ts,并移除 src/index.ts 中对
|
|
13
|
+
reportDailyHeartbeat 的导入与调用(上游行为为每日向 https://dsh-market.com/api/telemetry/event
|
|
14
|
+
上报一次包名;本派生版不再发送任何遥测)。
|
|
15
|
+
|
|
16
|
+
依据 Apache License 2.0 第 4(b) 条,以上文件已作修改并在此声明。
|
|
17
|
+
本派生作品按 Apache License 2.0 分发,不提供任何担保。
|
|
18
|
+
|
|
19
|
+
改名历史(2026-10-13):
|
|
20
|
+
本包原名 @fish-under-sea/dsh-ssh,为统一「非个人原创的派生包一律带 -fish 后缀」的命名约定,
|
|
21
|
+
改名为 @fish-under-sea/dsh-ssh-fish(版本 0.4.x -> 0.5.0)。npm 上的旧包名已 deprecated 并指向新包名。
|
|
22
|
+
注意:本包的 settings 命名空间(用户配置键)与插件 `name` 导出刻意不随包名变动 ——
|
|
23
|
+
它们是运行期配置契约,改名不会丢失既有配置(主机库 / 台账 / 设置项)。
|
package/README.en.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# @fish-under-sea/dsh-ssh-fish
|
|
2
|
+
|
|
3
|
+
**1.0.0 · SSH Operations**
|
|
4
|
+
|
|
5
|
+
[简体中文](README.md)
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
Host inventory, pooled connections, persistent Web PTY terminals, SFTP, loopback tunnels and cluster execution; six agent tools share the GUI host configuration.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
dsh plugin --profile <profile> add @fish-under-sea/dsh-ssh-fish@1.0.0
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Also included in `@fish-under-sea/dsh-fish@1.0.0`. Do not expand duplicate rows through both aggregate and standalone bundles. Restart DSH after installation; use the desktop plugin manager when no CLI is available.
|
|
18
|
+
|
|
19
|
+
## Configuration and Safety
|
|
20
|
+
|
|
21
|
+
Protect $DSH_HOME/dsh-ssh.json as sensitive: passwords and passphrases may be plaintext. Output is not redacted; reconnects may replay non-idempotent commands. Transfers use Host filesystem privileges; proxyCommand is trusted shell input. Agents may use only user-configured hosts.
|
|
22
|
+
|
|
23
|
+
Node requirement: `^22.19.0 || >=24.0.0`. Host compatibility follows this package manifest; the aggregate does not override Host checks.
|
|
24
|
+
|
|
25
|
+
## Maintenance and Attribution
|
|
26
|
+
|
|
27
|
+
1.0.0 is a coordinated release number, not a claim that all latest upstream commits are merged. Historical documentation remains in Git; see [aggregate changelog](https://github.com/Fish-under-sea/dsh-fish/blob/main/CHANGELOG.en.md).
|
|
28
|
+
|
|
29
|
+
Forked from [zhu1090093659/dsh-web](https://github.com/zhu1090093659/dsh-web). Original authorship, LICENSE and NOTICE are preserved; Fish maintains naming and integration adaptations. License: Apache-2.0.
|
package/README.md
CHANGED
|
@@ -1,99 +1,29 @@
|
|
|
1
|
-
# dsh-ssh
|
|
1
|
+
# @fish-under-sea/dsh-ssh-fish
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**1.0.0 · SSH 运维**
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
<img src="https://img.shields.io/npm/v/@fish-under-sea/dsh-ssh-fish?style=flat-square" alt="Version">
|
|
7
|
-
|
|
8
|
-
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.0--rc.2-4c6ef5?style=flat-square&labelColor=454a54" alt="DSH">
|
|
9
|
-
|
|
10
|
-
<img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
|
|
11
|
-
</p>
|
|
5
|
+
[English](README.en.md)
|
|
12
6
|
|
|
13
|
-
|
|
14
|
-
<strong>Remote Linux Server Operations & Web SSH Suite for DeepSeek Harness (DSH)</strong><br>
|
|
15
|
-
<em>xterm.js Web Terminal · Visual SFTP Transfer · Port Forwarding Tunnels · Cluster Execution · 6 Agent Tools</em>
|
|
16
|
-
</p>
|
|
7
|
+
## 功能
|
|
17
8
|
|
|
18
|
-
|
|
9
|
+
主机管理、持久连接池、Web PTY 终端、SFTP、回环端口转发与集群执行;六个 Agent 工具与 GUI 共享主机配置。
|
|
19
10
|
|
|
20
|
-
##
|
|
21
|
-
|
|
22
|
-
| Capability | Description |
|
|
23
|
-
| --- | --- |
|
|
24
|
-
| Host management | CRUD, search, connection test; collapsible grouping by environment / tags with per-group batch test; config stored in `~/.dsh/dsh-ssh.json`; supports key / password / ssh-agent auth (OpenSSH agent / Pageant), passphrase keys, ProxyJump jump hosts (multi-level) and OpenSSH `ProxyCommand` transports (bastion clients) |
|
|
25
|
-
| Config import | One-click parse of a standard `~/.ssh/config` (Host/HostName/User/Port/IdentityFile/IdentityAgent/ProxyJump/ProxyCommand, `Include` files, blocks without HostName); skipped blocks are listed with their reason (wildcard pattern, existing alias, Match block, invalid fields) |
|
|
26
|
-
| Persistent connection pool | Reuses a long-lived connection per host (opposite of the ssh-skill daemon), automatically disconnects after 30 minutes idle, auto-reconnects on disconnect (up to 3 times) |
|
|
27
|
-
| Command execution | exec with a timeout (default 60s), stdout/stderr separated, output truncation guard (2MB) |
|
|
28
|
-
| Web terminal | xterm.js + WebSocket PTY terminal, auto-sizing, real-time output |
|
|
29
|
-
| File transfer | SFTP upload (browser file picker, NDJSON progress stream), download (progress bar + browser save); remote directory browsing |
|
|
30
|
-
| Port forwarding | Local port-forward tunnel (listens on 127.0.0.1 only) to reach a remote database / intranet service; list / stop supported |
|
|
31
|
-
| Cluster execution | One command run concurrently across many hosts (filter by alias / environment / tag, default concurrency 8) |
|
|
32
|
-
| Agent tools | `ssh_list` / `ssh_exec` / `ssh_upload` / `ssh_download` / `ssh_tunnel` / `ssh_cluster`; GUI and Agent share the same host config |
|
|
33
|
-
|
|
34
|
-
The panel loads its contents on first open. Closing and reopening it preserves the selected tab, form drafts and terminal session. The tunnel list refreshes every five seconds while its tab, panel and browser page are visible; automatic reads pause when hidden, resume immediately on return, and do not overlap slow reads. Port forwarding itself continues in the Host.
|
|
35
|
-
|
|
36
|
-
## Security model
|
|
37
|
-
|
|
38
|
-
- All `/api/dsh-ssh/*` routes are loopback-only (with same-origin checks) — the interfaces that execute commands against remote servers are not exposed to the LAN.
|
|
39
|
-
- Passwords / key passphrases are stored in plain text in `~/.dsh/dsh-ssh.json`, file mode 0600, directory 0700 (the same trust model as ssh-skill writing passwords into ssh-config comments).
|
|
40
|
-
- ssh-agent auth stores only the agent socket path (or the special value `pageant`); it never reads or stores private-key material.
|
|
41
|
-
- Tunnels only listen on `127.0.0.1`.
|
|
42
|
-
- Deleting a host or changing its connection fields (host / port / user / auth / proxyJump / proxyCommand) immediately closes that alias's pooled connection and tunnels; later operations reconnect with the new configuration and never reuse a connection authenticated with the old credentials.
|
|
43
|
-
- When the SSH connection behind a tunnel drops, the tunnel retires itself: the local port stops accepting, the tunnel leaves the list, and the connection that arrives during the drop is closed without traffic instead of interrupting the host process.
|
|
44
|
-
- A `proxyCommand` value is a shell command executed by the DSH host process with its privileges — exactly the trust `ssh(1)` gives the same line in `~/.ssh/config`. It can only come from the user's own 0600 store file: the Agent cannot create or edit hosts, and `ssh_list` reports only whether a host has one, never the command text.
|
|
45
|
-
- Before the Agent uses a tool, the host must first be configured in the GUI (or imported from ~/.ssh/config).
|
|
46
|
-
- `ssh_upload` / `ssh_download` read/write arbitrary local paths on this machine with host-process privileges (not through the bash sandbox) — same host-local-path semantics as ssh-skill, be aware of that permission surface.
|
|
47
|
-
- Agent transfer tools move files only between this machine and a remote SSH host; local-file reads and writes must use the local file tools (read / write / edit / bash), never the `ssh_*` tools.
|
|
48
|
-
- The remote output of exec / cluster is returned verbatim (not sanitized); a command like `env` may bring secrets from the remote environment back into the conversation log.
|
|
49
|
-
|
|
50
|
-
## Install
|
|
51
|
-
|
|
52
|
-
Install the family aggregate package `@fish-under-sea/dsh-web-all` (all plugins and skins in one) or this plugin alone:
|
|
11
|
+
## 安装
|
|
53
12
|
|
|
54
13
|
```sh
|
|
55
|
-
|
|
56
|
-
dsh plugin --profile web add @fish-under-sea/dsh-ssh-fish@latest
|
|
57
|
-
|
|
58
|
-
### From the repository (development)
|
|
59
|
-
git clone https://github.com/zhu1090093659/dsh-web.git
|
|
60
|
-
cd dsh-web
|
|
61
|
-
pnpm install && pnpm -r build
|
|
62
|
-
dsh plugin --profile web add link:$(pwd)/packages/dsh-ssh
|
|
63
|
-
|
|
14
|
+
dsh plugin --profile <profile> add @fish-under-sea/dsh-ssh-fish@1.0.0
|
|
64
15
|
```
|
|
65
16
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## Configuration
|
|
69
|
-
|
|
70
|
-
The settings panel (plugin config) toggles `announceToAgent` (whether to announce the plugin to the Agent; off by default so system prompts stay clean) and `enabled` (master switch), and sets `terminalFontFamily` (the web terminal font; empty defers to the CSS chain: `--dsh-ssh-terminal-font` → the official `--ds-font-family-code` token → the built-in monospace stack). The terminal font is fixed in the xterm constructor, so a plain stylesheet cannot override it; to render powerline / Nerd Font glyphs, enter a Nerd Font stack here (e.g. `"SauceCodePro Nerd Font", monospace`). Changes re-apply to open terminals live, no reconnect needed.
|
|
71
|
-
|
|
72
|
-
## Data
|
|
17
|
+
也可安装聚合包 `@fish-under-sea/dsh-fish@1.0.0`。聚合与独立安装不要重复展开相同插件行;安装完成后重启 DSH。桌面环境无 CLI 时使用插件管理器。
|
|
73
18
|
|
|
74
|
-
|
|
75
|
-
- Transfer staging: `os.tmpdir()/dsh-ssh-uploads/` (0700 directory, 0600 in-flight files)
|
|
19
|
+
## 配置与边界
|
|
76
20
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
```sh
|
|
80
|
-
pnpm install --filter @fish-under-sea/dsh-ssh-fish...
|
|
81
|
-
pnpm --filter @fish-under-sea/dsh-ssh-fish test # unit tests: store + engine (embedded ssh2 Server + real sshd)
|
|
82
|
-
pnpm --filter @fish-under-sea/dsh-ssh-fish build # tsc types + tsdown dual-half artifacts
|
|
83
|
-
```
|
|
21
|
+
配置为 $DSH_HOME/dsh-ssh.json,密码与口令可能明文保存,必须按敏感文件保护。执行和输出不脱敏;重连可能重放非幂等命令。本机上传下载按宿主权限读写;proxyCommand 是高信任 shell 命令。Agent 只能使用用户已配置主机。
|
|
84
22
|
|
|
85
|
-
|
|
23
|
+
Node 要求: `^22.19.0 || >=24.0.0`. DSH 支持范围以本包声明为准;聚合包不覆盖宿主兼容性检查。
|
|
86
24
|
|
|
87
|
-
|
|
88
|
-
- Download does not support a whole directory yet (download files individually); upload supports recursive directories (walks the local directory and transfers file by file).
|
|
89
|
-
- exec auto-reconnect on disconnect (up to 3 times) may re-execute non-idempotent commands — watch out for side effects on long commands.
|
|
90
|
-
- A ProxyJump hop is either a host alias configured in this plugin or an OpenSSH `[user@]host[:port]` address; an address hop has no stored credentials, so it reuses the target host's authentication (configure a host entry when the hop needs its own).
|
|
91
|
-
- `proxyCommand` and `proxyJump` cannot be combined on one host (OpenSSH resolves them by "whichever appears first in the config"; a stored entry has no order, so the plugin rejects the pair), and only the first hop of a chain may declare a ProxyCommand.
|
|
92
|
-
- A ProxyCommand is executed through the user's shell, so it inherits the DSH process's `PATH` and environment. On Windows the shell is killed without its process group, so a client it spawned may outlive the transport.
|
|
93
|
-
- The ssh_config import expands `Include` (globs, `~`, several pathnames, relative to the config directory) but not environment variables or `%` tokens, and a multi-pattern `Host a b` line still imports only its first pattern.
|
|
94
|
-
- Resume (broken-transfer continuation) is not implemented yet.
|
|
95
|
-
- The transfer of Agent tools is a host-machine local path (same semantics as ssh-skill).
|
|
25
|
+
## 维护与来源
|
|
96
26
|
|
|
97
|
-
|
|
27
|
+
1.0.0 统一发布版本,不表示已合并上游所有最新提交。历史说明保留在 Git 历史中;聚合变更见 [聚合变更记录](https://github.com/Fish-under-sea/dsh-fish/blob/main/CHANGELOG.md).
|
|
98
28
|
|
|
99
|
-
|
|
29
|
+
派生自 [zhu1090093659/dsh-web](https://github.com/zhu1090093659/dsh-web). 保留原作者署名、LICENSE 与 NOTICE;Fish 修改包括包名与对应适配。 许可证: Apache-2.0.
|
package/README.zh.md
CHANGED
|
@@ -1,99 +1,29 @@
|
|
|
1
|
-
# dsh-ssh
|
|
1
|
+
# @fish-under-sea/dsh-ssh-fish
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**1.0.0 · SSH 运维**
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
<img src="https://img.shields.io/npm/v/@fish-under-sea/dsh-ssh-fish?style=flat-square" alt="Version">
|
|
7
|
-
|
|
8
|
-
<img src="https://img.shields.io/badge/DSH-%3E%3D0.2.0--rc.2-4c6ef5?style=flat-square&labelColor=454a54" alt="DSH">
|
|
9
|
-
|
|
10
|
-
<img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
|
|
11
|
-
</p>
|
|
5
|
+
[English](README.en.md)
|
|
12
6
|
|
|
13
|
-
|
|
14
|
-
<strong>DeepSeek Harness(DSH)官方 Web GUI 与桌面客户端专属远程 Linux 服务器运维套件</strong><br>
|
|
15
|
-
<em>xterm.js Web 终端 · 可视化 SFTP 传输 · 本地端口转发隧道 · 集群并发命令 · 6 大 Agent 工具</em>
|
|
16
|
-
</p>
|
|
7
|
+
## 功能
|
|
17
8
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
## 能力
|
|
21
|
-
|
|
22
|
-
| 能力 | 说明 |
|
|
23
|
-
| --- | --- |
|
|
24
|
-
| 主机管理 | 增删改查、搜索、连接测试;支持按环境 / 标签分组折叠与组内批量测试;配置存 `~/.dsh/dsh-ssh.json`;支持密钥 / 密码 / ssh-agent 认证(OpenSSH agent / Pageant)、passphrase 密钥、ProxyJump 跳板机(多级)与 OpenSSH `ProxyCommand` 传输层(堡垒机客户端场景) |
|
|
25
|
-
| 配置导入 | 一键解析标准 `~/.ssh/config`(Host/HostName/User/Port/IdentityFile/IdentityAgent/ProxyJump/ProxyCommand、`Include` 文件、无 HostName 的块);被跳过的块逐条列出原因(通配符 pattern、别名已存在、Match 条件块、字段不合法) |
|
|
26
|
-
| 持久连接池 | 每台主机复用长连接(对应 ssh-skill 的守护进程),空闲 30 分钟自动断开,断线自动重连(最多 3 次) |
|
|
27
|
-
| 命令执行 | exec 带超时(默认 60s),stdout/stderr 分离,输出截断保护(2MB) |
|
|
28
|
-
| Web 终端 | xterm.js + WebSocket PTY 终端,自适应尺寸,实时输出 |
|
|
29
|
-
| 文件传输 | SFTP 上传(浏览器选文件,NDJSON 进度流)、下载(进度条 + 浏览器保存);远程目录浏览 |
|
|
30
|
-
| 端口转发 | 本地端口转发隧道(仅监听 127.0.0.1),访问远程数据库 / 内网服务,支持列表 / 停止 |
|
|
31
|
-
| 集群执行 | 一条命令并发跑多台主机(按别名 / 环境 / 标签过滤,默认并发 8) |
|
|
32
|
-
| Agent 工具 | `ssh_list` / `ssh_exec` / `ssh_upload` / `ssh_download` / `ssh_tunnel` / `ssh_cluster`,GUI 与 Agent 共享同一份主机配置 |
|
|
33
|
-
|
|
34
|
-
面板在首次打开时加载内容。关闭后重新打开会保留选中的页签、表单草稿和终端会话。隧道列表仅在隧道页签、面板和浏览器页面都可见时每五秒刷新;隐藏时暂停自动查询,恢复可见时立即刷新,慢查询期间不叠加请求。端口转发本身继续在 Host 中运行。
|
|
35
|
-
|
|
36
|
-
## 安全模型
|
|
37
|
-
|
|
38
|
-
- 所有 `/api/dsh-ssh/*` 路由仅限 loopback 访问(含同源校验)——对远程服务器执行命令的接口不会暴露给局域网。
|
|
39
|
-
- 密码 / 密钥口令以明文保存在 `~/.dsh/dsh-ssh.json`,文件权限 0600、目录 0700(与 ssh-skill 把密码写进 ssh-config 注释同一信任模型)。
|
|
40
|
-
- ssh-agent 认证仅保存 agent socket 路径(或 `pageant` 特殊值),不读取也不保存任何私钥材料。
|
|
41
|
-
- 隧道只监听 `127.0.0.1`。
|
|
42
|
-
- 删除主机或修改其连接字段(host / port / user / auth / proxyJump / proxyCommand)会立即断开该别名的池化连接与隧道,后续操作按新配置重新建连,不会复用旧凭据的已认证连接。
|
|
43
|
-
- 隧道背后的 SSH 连接一旦断开,隧道会自行退役:本地端口不再接受连接,隧道从列表中消失;断开期间到达的连接被直接关闭且没有流量,不会打断宿主进程。
|
|
44
|
-
- `proxyCommand` 是一条由 DSH 宿主进程以其自身权限执行的 shell 命令——与 `ssh(1)` 执行 `~/.ssh/config` 里同一行的信任模型一致。它只能来自用户自己的 0600 配置文件:Agent 无法创建或修改主机,`ssh_list` 只报告该主机是否配置了 ProxyCommand,不返回命令原文。
|
|
45
|
-
- Agent 使用工具前,主机需先在 GUI 中配置(或从 ~/.ssh/config 导入)。
|
|
46
|
-
- `ssh_upload` / `ssh_download` 以宿主进程权限直接读写本机任意路径(不经 bash 沙箱)——与 ssh-skill 的宿主本地路径语义一致,注意该权限面。
|
|
47
|
-
- Agent 传输工具只在本机与远程 SSH 主机之间移动文件;本机文件的读写一律使用本地文件工具(read / write / edit / bash),不要使用 `ssh_*` 工具。
|
|
48
|
-
- exec / cluster 的远程输出原样返回(不脱敏),命令如 `env` 可能把远端环境中的密钥带回对话记录。
|
|
9
|
+
主机管理、持久连接池、Web PTY 终端、SFTP、回环端口转发与集群执行;六个 Agent 工具与 GUI 共享主机配置。
|
|
49
10
|
|
|
50
11
|
## 安装
|
|
51
12
|
|
|
52
|
-
推荐直接安装全家桶聚合包 `@fish-under-sea/dsh-web-all`(一个包装齐全部功能插件与皮肤),或单独安装本插件:
|
|
53
|
-
|
|
54
13
|
```sh
|
|
55
|
-
|
|
56
|
-
dsh plugin --profile web add @fish-under-sea/dsh-ssh-fish@latest
|
|
57
|
-
|
|
58
|
-
### 从仓库安装(开发调试)
|
|
59
|
-
git clone https://github.com/zhu1090093659/dsh-web.git
|
|
60
|
-
cd dsh-web
|
|
61
|
-
pnpm install && pnpm -r build
|
|
62
|
-
dsh plugin --profile web add link:$(pwd)/packages/dsh-ssh
|
|
63
|
-
|
|
14
|
+
dsh plugin --profile <profile> add @fish-under-sea/dsh-ssh-fish@1.0.0
|
|
64
15
|
```
|
|
65
16
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## 配置
|
|
69
|
-
|
|
70
|
-
设置面板(插件配置)可开关 `announceToAgent`(是否向 Agent 宣告插件;默认关闭,保持系统提示词干净)与 `enabled`(总开关),并可设置 `terminalFontFamily`(Web 终端字体,留空则按 CSS 链解析:`--dsh-ssh-terminal-font` → 官方 `--ds-font-family-code` token → 内置 monospace 栈)。终端字体写死在 xterm 构造参数里,CSS 无法直接覆盖;要渲染 powerline / Nerd Font 图标,请在此填入对应 Nerd Font 栈(如 `"SauceCodePro Nerd Font", monospace`),修改对已打开的终端即时生效,无需重连。
|
|
71
|
-
|
|
72
|
-
## 数据
|
|
17
|
+
也可安装聚合包 `@fish-under-sea/dsh-fish@1.0.0`。聚合与独立安装不要重复展开相同插件行;安装完成后重启 DSH。桌面环境无 CLI 时使用插件管理器。
|
|
73
18
|
|
|
74
|
-
|
|
75
|
-
- 传输暂存:`os.tmpdir()/dsh-ssh-uploads/`(目录 0700,传输中的文件 0600)
|
|
19
|
+
## 配置与边界
|
|
76
20
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
```sh
|
|
80
|
-
pnpm install --filter @fish-under-sea/dsh-ssh-fish...
|
|
81
|
-
pnpm --filter @fish-under-sea/dsh-ssh-fish test # 单测:store + 引擎(内嵌 ssh2 Server + 真实 sshd)
|
|
82
|
-
pnpm --filter @fish-under-sea/dsh-ssh-fish build # tsc 类型 + tsdown 双半区产物
|
|
83
|
-
```
|
|
21
|
+
配置为 $DSH_HOME/dsh-ssh.json,密码与口令可能明文保存,必须按敏感文件保护。执行和输出不脱敏;重连可能重放非幂等命令。本机上传下载按宿主权限读写;proxyCommand 是高信任 shell 命令。Agent 只能使用用户已配置主机。
|
|
84
22
|
|
|
85
|
-
|
|
23
|
+
Node 要求: `^22.19.0 || >=24.0.0`. DSH 支持范围以本包声明为准;聚合包不覆盖宿主兼容性检查。
|
|
86
24
|
|
|
87
|
-
|
|
88
|
-
- 下载暂不支持整个目录(逐文件下载);上传支持目录递归(walk 本地目录逐文件传)。
|
|
89
|
-
- exec 断线自动重连(最多 3 次)可能重复执行非幂等命令——长命令注意副作用。
|
|
90
|
-
- 跳板机 ProxyJump 的每一跳可以是本插件已配置的主机别名,也可以是 OpenSSH 的 `[user@]host[:port]` 地址;地址形式的跳板没有自己的凭据,复用目标主机的认证(跳板需要独立凭据时请单独配置主机)。
|
|
91
|
-
- 同一台主机不能同时配置 `proxyCommand` 与 `proxyJump`(OpenSSH 按「配置中先出现者生效」解析,而存储条目没有先后顺序,因此直接报错),且链式跳板中只有第一跳可以声明 ProxyCommand。
|
|
92
|
-
- ProxyCommand 由用户 shell 执行,因此继承 DSH 进程的 `PATH` 与环境变量。Windows 上只杀 shell、不带进程组,它拉起的客户端进程可能比传输层存活更久。
|
|
93
|
-
- ssh_config 导入会展开 `Include`(glob、`~`、多路径、相对配置目录),但不支持环境变量与 `%` token;`Host a b` 这类多 pattern 行仍只导入第一个 pattern。
|
|
94
|
-
- 断点续传(resume)暂未实现。
|
|
95
|
-
- Agent 工具的传输为宿主机器本地路径(与 ssh-skill 相同的语义)。
|
|
25
|
+
## 维护与来源
|
|
96
26
|
|
|
97
|
-
|
|
27
|
+
1.0.0 统一发布版本,不表示已合并上游所有最新提交。历史说明保留在 Git 历史中;聚合变更见 [聚合变更记录](https://github.com/Fish-under-sea/dsh-fish/blob/main/CHANGELOG.md).
|
|
98
28
|
|
|
99
|
-
|
|
29
|
+
派生自 [zhu1090093659/dsh-web](https://github.com/zhu1090093659/dsh-web). 保留原作者署名、LICENSE 与 NOTICE;Fish 修改包括包名与对应适配。 许可证: Apache-2.0.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fish-under-sea/dsh-ssh-fish",
|
|
3
3
|
"description": "Remote SSH operations for the dsh web GUI: host config store (~/.dsh/dsh-ssh.json, import from ~/.ssh/config), a persistent ssh2 connection pool with jump-host support, exec / PTY web terminal / SFTP transfer / local port-forward tunnels / cluster execution, plus agent tools (ssh_list, ssh_exec, ssh_upload, ssh_download, ssh_tunnel, ssh_cluster). Hot-pluggable — mounted via ~/.dsh/cordis.patch.yml + a profile node_modules symlink, no dsh source changes.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.0.0",
|
|
5
5
|
"icon": "icon.svg",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"packageManager": "pnpm@11.7.0",
|
|
@@ -94,7 +94,10 @@
|
|
|
94
94
|
"src",
|
|
95
95
|
"cordis.patch.yml",
|
|
96
96
|
"README.md",
|
|
97
|
-
"icon.svg"
|
|
97
|
+
"icon.svg",
|
|
98
|
+
"README.en.md",
|
|
99
|
+
"LICENSE",
|
|
100
|
+
"NOTICE"
|
|
98
101
|
],
|
|
99
102
|
"publishConfig": {
|
|
100
103
|
"access": "public"
|
|
@@ -103,6 +106,6 @@
|
|
|
103
106
|
"repository": {
|
|
104
107
|
"type": "git",
|
|
105
108
|
"url": "https://github.com/Fish-under-sea/dsh-fish.git",
|
|
106
|
-
"directory": "packages/dsh-ssh"
|
|
109
|
+
"directory": "packages/dsh-ssh-fish"
|
|
107
110
|
}
|
|
108
111
|
}
|