下载
wget
tar -zxvf frp_0.20.0_linux_amd64.tar.gz
cd frp_0.20.0_linux_amd64
./frps -c frps_full.ini #开启服务端
#客户端
frpc.ini
[common]
server_addr = 39.x.x.x
server_port = 7000
token = 12345678
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
[mstsc]
type = tcp
local_ip = 192.168.10.3
local_port = 3389
remote_port = 6001
./frpc -c frpc.ini
然后用服务器的IP,就可以连到内网了
ssh -p 6000 root@39.x.x.x
阅读(1190) | 评论(0) | 转发(0) |