zl程序教程

您现在的位置是:首页 >  后端

当前栏目

frp ssh反向代理配置使用

ssh代理配置 反向 frp 使用
2023-09-27 14:21:18 时间

本质是一个内网反向代理工具,需要一个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
就可以访问了