dsh-cloud-tunnel
通用云服务器 SSH 穿透 + mTLS 局域网/公网双轨访问插件
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Catsbe/dsh-cloud-tunnelREADME
Read the full README ↗🖥️ PC 端插件安装与配置
1. 安装插件到 DSH
方式 A:从 GitHub 直接安装(推荐)
在命令行运行(或在 DSH 设置 → 插件管理中从 GitHub 安装):
dsh plugin add github:Catsbe/dsh-cloud-tunnel
方式 B:本地开发调试安装
将仓库根目录下的插件文件复制(或软链接)到 DSH 插件目录(如 ~/.dsh/custom-plugins/dsh-cloud-tunnel),并在当前 profile 中启用 dsh-cloud-tunnel。
2. 配置文件示例
插件运行后会在 ~/.dsh/cloud-tunnel-config.json 生成配置(也可以直接在 DSH 左下角「云服务器远程穿透」弹窗中可视化填写):
{
"enabled": false,
"serverHost": "your-server-ip-or-domain",
"serverPort": 22,
"serverUser": "root",
"authType": "key",
"keyPath": "~/.ssh/id_rsa",
"password": "",
"remotePort": 58001,
"localPort": 58000,
"publicUrl": "https://dsh.example.com:8443",
"autoStart": true,
"lanDirectEnabled": false,
"bridgeToken": "自动生成的 256-bit 随机令牌"
}
2. 配置文件示例
插件运行后会在 ~/.dsh/cloud-tunnel-config.json 生成配置(也可以直接在 DSH 左下角「云服务器远程穿透」弹窗中可视化填写):
{
"enabled": false,
"serverHost": "your-server-ip-or-domain",
"serverPort": 22,
"serverUser": "root",
"authType": "key",
"keyPath": "~/.ssh/id_rsa",
"password": "",
"remotePort": 58001,
"localPort": 58000,
"publicUrl": "https://dsh.example.com:8443",
"autoStart": true,
"lanDirectEnabled": false,
"bridgeToken": "自动生成的 256-bit 随机令牌"
}