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