安装
配置服务端
配置客户端
用法

安装

下载链接

配置服务端

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
mkdir -p /root/tmp
tar --strip-components=1 -C /root/tmp -xvf 安装包
mv -f /root/tmp/frps /usr/local/bin/azi

cat > /etc/systemd/system/azi.service <<EOF
[Unit]
Description = azi server
After = network.target syslog.target
Wants = network.target

[Service]
Type = simple
ExecStart = /usr/local/bin/azi -c /usr/local/etc/azi/config.toml
Restart=on-failure
RestartSec=5

[Install]
WantedBy = multi-user.target
EOF

systemctl enable azi

mkdir -p /usr/local/etc/azi/

cat > /usr/local/etc/azi/config.toml <<EOF
bindPort = 8848
bindAddr = "::"
auth.token = "hentailolicon"
EOF

rm -r /root/tmp

配置客户端

1
2
3
4
5
6
7
8
9
10
11
12
serverAddr = "服务端的IP"
serverPort = 8848
auth.token = "hentailolicon"

[[proxies]]
name = "ssh"
type = "tcp"
localIP = "::"
localPort = 22
remotePort = 2222
transport.useEncryption = true
transport.useCompression = true

Win11 安装 OpenSSH

1
2
3
4
5
设置 -> 系统 -> 可选功能 -> 添加可选功能 -> 搜索 OpenSSH

搜索 OpenSSH 客户端 OpenSSH 服务器 -> 下一步 -> 安装

win+r -> services.msc -> OpenSSH SSH Server -> 启动

开放端口

1
win+r -> firewall.cpl -> 高级设置 -> 入站规则 -> 新建规则

用法

1
ssh -p 2222 用户名@服务端ip