本质是一个内网反向代理工具,需要一个vps配合,因为要外网ip。

主页:

https://github.com/fatedier/frp

1、服务端(VPS)

可以用下面的一键安装脚本,也可以用主页上的原始配置方式

输入以下命令,一次一条,一共四条:
apt-get update
wget --no-check-certificate https://raw.githubusercontent.com/clangcn/onekey-install-shell/master/frps/install-frps.sh -O ./install-frps.sh
chmod 700 ./install-frps.sh
./install-frps.sh install

2.客户端:

配置, 需要配置刚刚服务端生成的token,用于授权

# frpc.ini
[common]
server_addr = x.x.x.x
server_port = 7000

# for authentication
token = xxx

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000

然后用命令
ssh -oPort=6000 test@x.x.x.x
就可以访问了

相关文章:

  • 2022-12-23
  • 2021-07-10
  • 2022-02-08
  • 2021-09-02
  • 2022-12-23
  • 2022-01-20
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2022-02-19
  • 2021-11-19
  • 2022-12-23
相关资源
相似解决方案