1 安装ftp
2 在服务端进入配置
[common]
bind_port = 7000 #frp服务端使用的端口
#authentication_timeout = 900 #服务端与客户端所在机器的时间差不能超过这个时间
#bind_udp_port = 7001
#kcp_bind_port = 7000
#vhost_http_port = 10080
#vhost_https_port = 10443
dashboard_port = 7500 # 仪表盘端口
dashboard_user = admin
dashboard_pwd = admin
#token = 12345678 #frp 服务端密码,对端客户端必须与服务端相同
allow_ports = 6501-9999 #允许客户端的端口范围
max_pool_count = 5
max_ports_per_client = 0
tcp_mux=ture
./frps -c ./frps.ini 启动frp服务
nohup ./frps -c ./frps.ini & 后台启动frp服务
客户端同上
[common]
server_addr = #服务端的公网地址
server_port = #服务端端口
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6005 #要使用的转发端口