服务器端
[common]
bind_port = 7000
token = XX-需要保存一致
#web
vhost_http_port = 8081
客户端
[common]
server_addr = 公网ip
server_port = 7000
token = XX-需要保存一致
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
[web]
type = http
local_port = 8080
custom_domains = 公网ip
公网ip:6000 转发到到本地22端口
公网ip:8081 转发到到本地8080端口
ssh登录
ssh -oPort=6000 [email protected]
armbian的配置:
armbian-software
Core file path: [ /usr/bin/frpc ]
Config file path: [ /etc/frp/frpc.ini ]
Service file path: [ /etc/systemd/system/frpc.service ]
Operate:
- Edit config file: [ vi /etc/frp/frpc.ini ]
- restart the service: [ sudo systemctl restart frpc ]
- Check running status: [ sudo systemctl status frpc ]
Service management commands:
sudo systemctl start frpc
sudo systemctl stop frpc
sudo systemctl restart frpc
sudo systemctl enable frpc
sudo systemctl status frpc