mirror of
http://junepve.top:3000/chicrobot/README.git
synced 2026-10-29 21:31:29 +08:00
776 B
776 B
公网ip服务器部署frps服务端
- 安装docker
- 安装1panel
bash -c "$(curl -sSL https://resource.fit2cloud.com/1panel/package/v2/quick_start.sh)"
- 在面板中安装frps
内网设备安装frpc客户端
- 安装
curl -LO https://gitee.com/kuwinet/frp-onekey/raw/master/frpc.sh && chmod +x frpc.sh && ./frpc.sh
- 配置
vim /usr/local/frpc/frpc.toml
文件内容
serverAddr = "服务器地址"
serverPort = 端口
auth.method = "token"
auth.token = "服务端密钥"
[[proxies]]
name = "ssh"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 6000 # 公网服务器上用于接收 SSH 连接的端口
- 查看状态、重启
sudo systemctl status frpc
sudo systemctl restart frpc