dsh-remote
支持 SSH 连接与文件同步的远程工作助手。
AI 分析
适合需要在 DSH 中直接操作远程服务器和编辑文件的开发者。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:flymysql/dsh-remote說明文件
閱讀完整 README ↗Configuration
| Key | Type | Default | Meaning |
|---|---|---|---|
host | string | '' | default SSH host (else start disconnected) |
port | int | 22 | default SSH port |
username | string | '' | default SSH user |
password | string | '' | default SSH password (non-empty overrides key) |
privateKeyPath | string | '' | private key path (used only when explicitly provided) |
passphrase | string | '' | passphrase for an encrypted private key |
workspace | string | '' | default remote workspace path |
shell | string | '' | remote command terminal strategy: ''=auto-detect (Git Bash on Windows remotes), 'git-bash'=prefer Git Bash, 'native'=never wrap, anything else=explicit bash.exe path (e.g. C:\Program Files\Git\bin\bash.exe) |
commandTimeoutMs | int | 20000 | per remote command timeout |
connectTimeoutMs | int | 15000 | SSH connect timeout |
maxFileBytes | int | 52428800 | skip mirroring/reading files larger than this (0 = no cap) |
hostKeyMode | string | accept-new | host-key policy: accept-new (TOFU), verify (reject unknown hosts), off (skip) |
useAgent | bool | false | authenticate via the OpenSSH agent (SSH_AUTH_SOCK) |
keyboardInteractive | bool | false | allow keyboard-interactive auth (OTP/MFA) with the configured password |
proxy | object | — | jump host: { host, port?, username?, password?, privateKeyPath? } |
autoPush | bool | false | auto-push edited mirror files back to the remote (watcher, debounced) |
auditLog | bool | true | append executed commands to $DSH_HOME/remote-workspaces/audit.log |
encoding | string | utf-8 | text encoding for remote file reads/writes (e.g. gbk) |