返回顶部
w

wcs-helper-network-skillWCS网络助手

SSH tunnel for China servers to access internationally blocked sites (GitHub, ClawHub, HuggingFace, arXiv, Google, YouTube). Password-auth based, one-command setup, auto-reconnect.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
93
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

wcs-helper-network-skill

WCS Helper: 网络隧道

从你位于中国的服务器访问被国际封锁的网站。


何时需要此功能

场景A — git push 一直超时

git push github main

→ 连接超时

→ /万重山-隧道-开启 → 重新推送 → 成功

场景B — npm install 安装来自 GitHub 的包一直失败

npm install some-github-package

→ 网络超时

→ /万重山-隧道-开启 → npm 通过隧道正常工作

场景C — HuggingFace 模型下载卡住

huggingface-cli download ...

→ 超时或连接重置

→ /万重山-隧道-开启 → 通过隧道完成下载

场景D — ClawHub 技能安装超级慢

clawhub install author/skill

→ 极其缓慢,经常失败

→ /万重山-隧道-开启 → ClawHub 全速安装



支持的网站


网站用途状态
GitHubgit clone/push, npm 包
ClawHub
技能安装, 插件浏览 | ✅ |
| HuggingFace | 模型下载, 数据集 | ✅ |
| arXiv | 研究论文访问 | ✅ |
| Google | 搜索, 字体, 分析 | ✅ |
| YouTube | 视频嵌入, API | ✅ |
| Twitter/X | 社交媒体嵌入 | ✅ |
| Reddit | 论坛访问, API | ✅ |


前提条件

必需

  • - 一台位于中国境外的服务器(任何支持SSH访问的VPS)
- 推荐:腾讯云新加坡、AWS新加坡或任何国际VPS - 必须启用SSH密码认证
  • - 该服务器的SSH密码
  • 服务器的公网IP地址

推荐

  • - 在中国服务器上安装 autossh(隧道断开时自动重启)
- 安装:apt install autossh(Debian/Ubuntu)
  • - 安装 sshpass(用于基于密码的SSH)
- 安装:apt install sshpass

网络流向

你的中国服务器 (autossh 客户端)
↓ SSH 隧道(加密)
新加坡/国际 VPS(作为 SOCKS5 代理)

GitHub / ClawHub / HuggingFace / Google



设置

1. 获取隧道服务器

任何国际VPS均可。推荐:

  • - 腾讯云新加坡(约15元人民币/月)
  • AWS新加坡免费套餐
  • DigitalOcean新加坡
  • Vultr东京/新加坡

要求:

  • - 已启用SSH密码访问
  • 端口22(SSH)对中国IP开放

2. 安装技能

bash
npx -y clawhub install guanqi0914/wcs-helper-network-skill

3. 使用你的服务器进行配置

通过飞书私聊发送此命令:

/万重山-隧道-配置 服务器IP SSH端口 用户名 密码

示例:

/万重山-隧道-配置 43.134.164.43 22 ubuntu myPassword123

4. 启动隧道

/万重山-隧道-开启

你应该会看到:✅ 隧道已连接

5. 测试

bash
curl --socks5 127.0.0.1:1080 https://api.github.com

应返回:HTTP 200




所有命令


命令功能
/万重山-隧道-配置 <IP> <端口> <用户> <密码>设置隧道服务器凭据
/万重山-隧道-开启
启动隧道 |
| /万重山-隧道-关闭 | 停止隧道 |
| /万重山-隧道-状态 | 显示隧道连接状态 |
| /万重山-隧道-测试 | 测试隧道速度 |
| /万重山-隧道-帮助 | 显示帮助 |


使用技巧

在运行 git/npm 命令之前

先发送 /万重山-隧道-状态。如果看到隧道:✅,就可以正常使用。如果显示隧道:❌,先发送 /万重山-隧道-开启。

隧道保持开启直到你关闭它

隧道在后台运行。当不再需要国际访问时,发送 /万重山-隧道-关闭。

哪些端口被代理

只有通过SOCKS5代理的TCP连接会被隧道化:

  • - GitHub (443) ✅
  • ClawHub (443) ✅
  • HuggingFace (443) ✅
  • Google (443) ✅

UDP流量(某些游戏、VoIP)不会被代理。



工作原理

连接过程

  1. 1. autossh 通过 SSH 连接到你的国际服务器
sshpass -p password ssh -N -D 127.0.0.1:1080 user@server-ip
  1. 2. SSH 创建加密隧道
  1. 3. autossh 每30秒监控隧道
  1. 4. 如果隧道断开 → autossh 自动重启
  1. 5. 应用程序使用 127.0.0.1:1080 作为 SOCKS5 代理

没有隧道(直接连接)

中国服务器 → GitHub/ClawHub/HuggingFace

连接超时 / 重置 / 非常慢

使用隧道

中国服务器 → SSH 隧道 → 国际 VPS → GitHub/ClawHub/HuggingFace

稳定的加密连接



性能


指标数值
隧道延迟~50-100ms(中国 → 新加坡)
GitHub 克隆速度
500KB/s - 5MB/s |
| ClawHub 安装 | 1-5秒 |
| 代理开销 | ~5-10% 带宽 |


故障排除

隧道:❌ 连接失败
→ 检查服务器IP、SSH端口、用户名、密码
→ 确保你的VPS上已启用SSH密码认证

隧道已连接但git push仍然超时
→ 重试一次 — GitHub有时会临时限制隧道IP
→ 如果持续存在,你的VPS IP可能已被GitHub列入黑名单

服务器重启后autossh进程未运行
→ 发送 /万重山-隧道-开启 手动重启
→ 或者设置systemd服务(高级 — 参见 auto-fix.sh)

SSH连接被拒绝
→ 检查你的VPS防火墙是否开放了端口22
→ 如果端口22被封锁,尝试使用SSH端口2222



安全说明

  • - 隧道仅处理来自你中国服务器的出站连接
  • 你的VPS提供商可以看到流量(GitHub、ClawHub等),但看不到你中国服务器的其他流量
  • VPS上不存储任何数据 — 仅进行加密传输
  • 隧道凭据本地存储在 ~/.wcs_tunnel.conf(chmod 600)

卸载

bash

停止隧道


/万重山-隧道-关闭

删除技能文件

rm -rf ~/.openclaw/workspace/skills/wcs-helper-network-skill rm -f ~/.wcs_tunnel.conf

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 wcs-helper-network-skill-1776025683 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 wcs-helper-network-skill-1776025683 技能

通过命令行安装

skillhub install wcs-helper-network-skill-1776025683

下载

⬇ 下载 wcs-helper-network-skill v1.0.1(免费)

文件大小: 7.06 KB | 发布时间: 2026-4-13 12:32

v1.0.1 最新 2026-4-13 12:32
wcs-helper-network-skill v1.0.1

- Overhauled SKILL.md: now simpler, more concise, and better focused on real-world usage scenarios.
- Updated description to emphasize password-auth setup, one-command configuration, and supported major sites (GitHub, ClawHub, HuggingFace, arXiv).
- Clarified prerequisites, setup steps, recommended software, troubleshooting, and security notes.
- Updated command list and usage flows for better guidance.
- Minor metadata change: removed command-tool and command-arg-mode from openclaw metadata.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部