2020年2月27日星期四

Remote access to lab / office server using frp

The server's external network access has been unstable, so I wanted to buy a cheap server + frp tool on Alibaba Cloud to achieve remote server external network access.


Step 1: The basic steps, that is, to achieve remote access to the intranet Windows computer by FRP, see:

https://www.computationalimaging.cn/2020/02/remote-access-to-office-school-windows.html


Step2: After completing step 1, you only need to install frpc on the server, and the configuration file is written as(assuming that you plan to access by ssh):


[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

Then execute ./frpc -c ./frpc.ini to run

Step 3: Remote access


ssh -p 6060 username@47.XXX.XX.XX

You can also complete file mounting through file mounting software such as winshffs / xshell. You only need to change the port from 22 to 6060.

没有评论:

发表评论