更新 b5_ubuntu部署frps、frpc.md

This commit is contained in:
chicrobot committed 2026-09-06 21:18:29 +08:00
1 parent 908a8d9bb1
commit 6fa3de4b8c
1 file changed
+19
+19
View File
@@ -15,3 +15,22 @@ curl -LO https://gitee.com/kuwinet/frp-onekey/raw/master/frpc.sh && chmod +x frp
```shell ```shell
vim /usr/local/frpc/frpc.toml 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
```