frp远程访问内网服务器

服务器的外网访问一直不太稳定,所以就想在阿里云上买一个廉价服务器+frp工具实现服务器的外网远程访问。

步骤1: 基础步骤,即实现frp远程访问内网Windows电脑,见:

https://blog.csdn.net/qazwsxrx/article/details/103992499

步骤2:完成步骤1后,只需要在服务器端安装frpc, 并且配置文件写为:

[common]
server_addr = 47.XXX.XX.XX
server_port = 7001
token=XXXXXX

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

并./frpc -c ./frpc.ini开始运行

步骤3:远程访问:

ssh -p 6060 [email protected]

亦可winshffs完成文件挂载,只需要将端口从22改为6060。

发布了47 篇原创文章 · 获赞 11 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/qazwsxrx/article/details/103996655
今日推荐