首先我们需要使用到一个开源项目:tcp2ws,地址:https://github.com/rust-net/tcp2ws,(可以点个star支持一下作者,也就是我)
然后,你需要有一个托管在CF的域名,下面用xxx.xyz来示范
下载并启动:
wget 'https://proxy.my-api.workers.dev/proxy?proxyUrl=https://github.com/rust-net/tcp2ws/releases/download/1.0/tcp2ws-x86_64-linux-musl' -O tcp2ws
chmod x ./tcp2ws
./tcp2ws server -p 22 -l [::]:8080
最后在自己电脑上下载:tcp2ws.zip,双击进入配置页面添加配置:





给技术贴点赞
看起来很方便,支持