详细信息可参考:https://www.computationalimaging.cn/2020/02/remote-access-to-lab-office-server.html
服务器的外网访问一直不太稳定,所以就想在阿里云上买一个廉价服务器+frp工具实现服务器的外网远程访问。
步骤1: 基础步骤,即实现frp远程访问内网Windows电脑,见:
https://blog.youkuaiyun.com/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 username@47.XXX.XX.XX
亦可winshffs完成文件挂载,只需要将端口从22改为6060。