dsh-remote 0.8.54 → 0.8.60
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.en.md +15 -0
- package/README.md +13 -0
- package/lib/client.js +3853 -3733
- package/lib/credential.js +52 -4
- package/lib/errors.js +34 -3
- package/lib/index.js +156 -28
- package/lib/instructions.js +288 -288
- package/lib/pool.js +10 -1
- package/lib/registry.js +118 -4
- package/lib/routes-fs.js +14 -2
- package/lib/web-deploy.js +7 -1
- package/package.json +7 -3
package/README.en.md
CHANGED
|
@@ -355,6 +355,21 @@ Host devbox
|
|
|
355
355
|
|
|
356
356
|
**How are passwords stored?** — tick "encrypt password": macOS Keychain / Windows DPAPI / Linux secret-tool (libsecret); falls back to plaintext when unavailable.
|
|
357
357
|
|
|
358
|
+
**Why is the password box empty (where are the stars)?** — No secret is ever sent back to the browser, so the input stays empty; when a password IS saved its placeholder reads
|
|
359
|
+
`•••••••• (saved — leave blank to keep)` with a hint underneath. Saving with an empty box keeps the stored password; typing a new value replaces it. Same for the private-key
|
|
360
|
+
passphrase and the jump-host password. The password badge in the machine row means exactly this (a keychain-stored password counts as saved).
|
|
361
|
+
|
|
362
|
+
**Which password does "Test connection" use?** — The form in front of you, but a blank password / key / passphrase **falls back to the value saved for that machine**, so
|
|
363
|
+
"edit a machine that already connects → click test" now works (the success line says the saved password was used). After saving, the form stays bound to that machine so you can
|
|
364
|
+
test immediately; press "Cancel edit" to start over.
|
|
365
|
+
|
|
366
|
+
**"No credentials" even though you filled it in** — the password never actually landed on disk: when "encrypt password" is ticked and the OS store is unavailable the plugin
|
|
367
|
+
**refuses** to write plaintext and reports a warning (`credentialFallback` defaults to `refuse`). Look for the red warning after saving, fix the store and save again, or use
|
|
368
|
+
"Test connection" to verify on the spot. A machine with no password / key / agent is flagged in amber right inside the form.
|
|
369
|
+
|
|
370
|
+
**"SSH agent unavailable"** — the machine has "use SSH agent" ticked but the DSH host process has no `SSH_AUTH_SOCK` (Windows has no agent service by default). Start an agent
|
|
371
|
+
(and export `SSH_AUTH_SOCK`, or use Pageant) before launching DSH — or untick it and save a password / private key instead.
|
|
372
|
+
|
|
358
373
|
**The plugin vanished after a DSH upgrade** — DSH's compatibility check dropped the bundle; upgrade to **0.8.29+** (see "DSH version compatibility" above).
|
|
359
374
|
|
|
360
375
|
**"Remote DSH Web UI" will not connect / spins forever** — first check that `dsh web` starts on that
|
package/README.md
CHANGED
|
@@ -426,6 +426,19 @@ Host devbox
|
|
|
426
426
|
|
|
427
427
|
**密码怎么加密保存** —— 勾选「加密保存密码」:macOS 钥匙串 / Windows DPAPI / Linux secret-tool(libsecret);后端不可用时回退明文。
|
|
428
428
|
|
|
429
|
+
**密码框为什么是空的(星号在哪)** —— 出于安全,**任何密码都不会回传到浏览器**,所以输入框永远是空的;已经保存过密码时,输入框的占位符会显示
|
|
430
|
+
`••••••••(已保存,留空 = 不修改)`,下方还有一行绿字说明。留空保存 = 沿用已保存的密码,填新值 = 覆盖。passphrase 与跳板机密码同理。
|
|
431
|
+
机器列表里的「密码」标签也是这个含义(钥匙串里的密码同样算已保存)。
|
|
432
|
+
|
|
433
|
+
**「测试连接」用哪个密码** —— 用你眼前这份表单,但**留空的密码/私钥/passphrase 会自动沿用该机器已保存的值**,所以「编辑一台已经连上的机器 → 直接点测试」是能过的
|
|
434
|
+
(成功提示会注明「本次测试使用了已保存的密码」)。保存之后表单会**留在该机器上**,可以立刻点测试验证;想清空重来点「取消编辑」。
|
|
435
|
+
|
|
436
|
+
**报「缺少凭据」但你确信填过** —— 说明保存时密码没有真正落盘:勾了「加密保存密码」而系统钥匙库不可用时,插件会**拒绝**把密码写成明文并给出警告
|
|
437
|
+
(`credentialFallback` 默认 `refuse`)。看保存后有没有红色警告,按提示修好钥匙库再存一次,或用「测试连接」当场验证。机器没有密码/私钥/agent 时,编辑表单里会直接标黄提醒。
|
|
438
|
+
|
|
439
|
+
**报「SSH agent 不可用」** —— 该机器勾了「使用 SSH agent」,但 DSH 宿主进程里没有 `SSH_AUTH_SOCK`(Windows 默认没有 agent 服务)。启动 DSH 之前把 agent 跑起来并导出
|
|
440
|
+
`SSH_AUTH_SOCK`(或用 Pageant),或者取消勾选、改用密码/私钥。
|
|
441
|
+
|
|
429
442
|
**升级后插件整个不见了** —— DSH 兼容性判定丢弃了 bundle,升到 **0.8.29+** 即可(见上文「DSH 版本兼容性」)。
|
|
430
443
|
|
|
431
444
|
**「远程 DSH 界面」连不上/一直转圈** —— 先确认那台机器上的 `dsh web` **本身**能起来。
|