树莓派frp内网穿透

前言

目的是实现外网连接树莓派

步骤

# 客户端(树莓派)frpc.ini 
[common]
server_addr = 120.79.215.235
server_port = 7000

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

然后执行 ./frps -c ./frps.ini

# 服务端(阿里云服务器) 
[common]

[common]
# 本机公网ip 120.79.215.235
bind_port = 7000

然后执行 ./frpc -c ./frpc.ini

最后通过 xshell 连接

或者命令行 ssh -oPort=6000 [email protected]
但是不知道为什么命令行的方式在 xshell 老提示密码错误。

作者

Ginta

发布于

2020-05-30

更新于

2022-08-11

许可协议

评论