hehehe1234567894/dsh-ssh-remote0

deepseek-harness-ssh

DSH 的 SSH 远程控制插件,支持通过 SSH 在远程机器上运行命令、编译及读写文件,兼容反向隧道与 Tailscale。

AI 分析

提供免重启的 Web 可视化 SSH 配置面板。适合需要让 Agent 穿透内网、在远程家用电脑或特定服务器上执行开发任务的用户。

包名
deepseek-harness-ssh
版本
1.4.0
最近更新
2026年9月1日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:hehehe1234567894/dsh-ssh-remote

图形界面配置(Web UI,无需改文件)

重启 DSH 后,打开 Web 界面:

设置 → 插件 → 可配置插件 → 找到 SSH 远程连接 卡片,即可在网页上填写/修改连接参数:

字段说明
主机 host反向隧道用 localhost;直连或 Tailscale 填 IP/域名
端口 port反向隧道端口(默认 2222);直连家用电脑通常 22
远程用户名 user家用电脑登录用户名(Windows 是 C:\Users\ 的名字)
私钥 identityFile云端私钥路径,默认 ~/.ssh/dsh_cloud_to_home
远程 Shellbash(Linux/macOS/WSL)或 powershell(Windows)
连接超时 / 主机密钥校验 / known_hosts高级选项

保存立即生效(实时应用,无需重启),ssh_* 工具的目标随之更新。

实现说明(与 skillhub 插件同款、经过验证的架构):

  • host 端登记 settings 命名空间(deepseek-harness-ssh),"可配置"页据此分发本插件的卡片;
  • 卡片读写走插件自己的同源 HTTP 端点 POST /ssh-remote{method:'config', save?});
  • 保存值持久化到 ~/.dsh/ssh-remote.config.json,叠加在 cordis.patch.yml 组合值之上;
  • 工具每次调用读取合并后的活配置,因此保存即生效。

家用电脑端配置(拿取 home-setup 包执行)

打包好的材料:/home/ubuntu/DSHBuild/ssh-remote/home-setup-reverse-ssh.tar.gz (内含 dsh_home_to_cloud 私钥、dsh_cloud_to_home.pub 公钥、两个一键脚本)。

第一步:家用电脑开启 sshd

  • Ubuntu/Debian:sudo apt install openssh-server && sudo systemctl enable --now ssh
  • Windows 10/11(管理员 PowerShell):
    Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
    Start-Service sshd ; Set-Service -Name sshd -StartupType Automatic
    
  • macOS:系统设置 → 通用 → 共享 → 远程登录。

第二步:解压并运行脚本

tar -xzf home-setup-reverse-ssh.tar.gz && cd home-setup
./setup-reverse-tunnel.sh