agent-ssh-cli 0.2.5 → 0.2.9
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/README.md +4 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<a href="https://nodejs.org/"><img src="https://img.shields.io/badge/Node.js-%3E%3D18-339933?logo=node.js&logoColor=white" alt="Node.js >=18"></a>
|
|
13
13
|
<a href="https://www.npmjs.com/"><img src="https://img.shields.io/badge/npm-%3E%3D8-CB3837?logo=npm&logoColor=white" alt="npm >=8"></a>
|
|
14
14
|
<a href="https://github.com/sleepinginsummer/agent-ssh-cli"><img src="https://img.shields.io/badge/sys-win%2Fmac%2Flinux-0078D6" alt="sys win/mac/linux"></a>
|
|
15
|
-
<a href="https://github.com/sleepinginsummer/agent-ssh-cli/releases"><img src="https://img.shields.io/badge/release-v0.2.
|
|
15
|
+
<a href="https://github.com/sleepinginsummer/agent-ssh-cli/releases"><img src="https://img.shields.io/badge/release-v0.2.9-blue" alt="release v0.2.9"></a>
|
|
16
16
|
<a href="https://github.com/sleepinginsummer/agent-ssh-cli/pulls"><img src="https://img.shields.io/badge/PRs-welcome-brightgreen" alt="PRs welcome"></a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
@@ -88,10 +88,10 @@ AGENT_SSH_CONFIG=/path/to/config.json
|
|
|
88
88
|
- `name`: 连接名,必须唯一
|
|
89
89
|
- `host`: SSH 主机地址
|
|
90
90
|
- `username`: SSH 用户名
|
|
91
|
-
- `password` / `privateKey
|
|
91
|
+
- `password` / `privateKey`: 认证方式,二者必须且只能配置一个
|
|
92
92
|
- `port`: SSH 端口,默认 `22`
|
|
93
93
|
- `passphrase`: 私钥口令,仅配合 `privateKey` 使用
|
|
94
|
-
- `pty`: 是否分配伪终端,默认 `
|
|
94
|
+
- `pty`: 是否分配伪终端,默认 `false`,也可通过 `exec --pty` 临时开启
|
|
95
95
|
- `allowedLocalPaths`: 额外允许上传或下载写入的本地路径
|
|
96
96
|
- `commandWhitelist`: 命令白名单正则数组
|
|
97
97
|
- `commandBlacklist`: 命令黑名单正则数组
|
|
@@ -146,6 +146,7 @@ AGENT_SSH_CONFIG=/path/to/config.json
|
|
|
146
146
|
```bash
|
|
147
147
|
agentsshcli list
|
|
148
148
|
agentsshcli exec --no-cache 密码服务器 "pwd"
|
|
149
|
+
agentsshcli exec --pty 密码服务器 "tty"
|
|
149
150
|
agentsshcli exec 密码服务器 --command-file ./script.sh --timeout 60000
|
|
150
151
|
```
|
|
151
152
|
完成安装!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-ssh-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"description": "基于 CLI 的 SSH 代理工具,按 ssh-mcp-server 的能力一一映射",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"build:native-package": "npm run build:native-bin && node scripts/build-native-package.js"
|
|
28
28
|
},
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@agent-ssh-cli/darwin-arm64": "0.2.
|
|
31
|
-
"@agent-ssh-cli/darwin-x64": "0.2.
|
|
32
|
-
"@agent-ssh-cli/linux-arm64": "0.2.
|
|
33
|
-
"@agent-ssh-cli/linux-x64": "0.2.
|
|
34
|
-
"@agent-ssh-cli/win32-x64": "0.2.
|
|
30
|
+
"@agent-ssh-cli/darwin-arm64": "0.2.9",
|
|
31
|
+
"@agent-ssh-cli/darwin-x64": "0.2.9",
|
|
32
|
+
"@agent-ssh-cli/linux-arm64": "0.2.9",
|
|
33
|
+
"@agent-ssh-cli/linux-x64": "0.2.9",
|
|
34
|
+
"@agent-ssh-cli/win32-x64": "0.2.9"
|
|
35
35
|
}
|
|
36
36
|
}
|