From 6fa3de4b8c6ad6bfddffe355c9a4b40bdd8a2e51 Mon Sep 17 00:00:00 2001 From: chicrobot Date: Sun, 6 Sep 2026 21:18:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20b5=5Fubuntu=E9=83=A8?= =?UTF-8?q?=E7=BD=B2frps=E3=80=81frpc.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- b5_ubuntu部署frps、frpc.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/b5_ubuntu部署frps、frpc.md b/b5_ubuntu部署frps、frpc.md index 9d4cd79..5bcd04b 100644 --- a/b5_ubuntu部署frps、frpc.md +++ b/b5_ubuntu部署frps、frpc.md @@ -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 ``` \ No newline at end of file