更新 b5_ubuntu部署frps、frpc.md

This commit is contained in:
2026-09-06 21:18:29 +08:00
parent 908a8d9bb1
commit 6fa3de4b8c
+19
View File
@@ -14,4 +14,23 @@ curl -LO https://gitee.com/kuwinet/frp-onekey/raw/master/frpc.sh && chmod +x frp
2. 配置
```shell
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 连接的端口
```
3. 查看状态、重启
```shell
sudo systemctl status frpc
sudo systemctl restart frpc
```