Difference between revisions of "Tutorial:Remote Access"

From MobiNetS
Jump to: navigation, search
(Created page with "We use [FRP https://github.com/fatedier/frp] to enable remote access to servers in the lab. You may also register a unique port as access to your own PC. === Example === [co...")
 
Line 1: Line 1:
We use [FRP https://github.com/fatedier/frp] to enable remote access to servers in the lab.  
We use [https://github.com/fatedier/frp FRP] to enable remote access to servers in the lab.  
 
You may also register a unique port as access to your own PC.
You may also register a unique port as access to your own PC.


=== Example ===
=== Example ===
[common]  (Ask Zhiwei)
Place the following codes in your local '''frpc.ini''' and then you are good to go.
server_addr = x.x.x.x
 
server_port = xxxxx
[common]  (Ask Zhiwei)<br>
server_addr = x.x.x.x<br>
server_port = xxxxx<br>


[ssh]
[ssh]<br>
type = tcp
type = tcp<br>
local_ip = 127.0.0.1
local_ip = 127.0.0.1<br>
local_port = 22
local_port = 22<br>
remote_port = xxxxx
remote_port = xxxxx<br>


[mysql]
[mysql]<br>
type = tcp
type = tcp<br>
local_ip = 192.168.44.10
local_ip = 192.168.44.10<br>
local_port = 3306
local_port = 3306<br>
remote_port = xxxxx
remote_port = xxxxx<br>

Revision as of 11:32, 7 February 2021

We use FRP to enable remote access to servers in the lab.

You may also register a unique port as access to your own PC.

Example

Place the following codes in your local frpc.ini and then you are good to go.

[common] (Ask Zhiwei)
server_addr = x.x.x.x
server_port = xxxxx

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

[mysql]
type = tcp
local_ip = 192.168.44.10
local_port = 3306
remote_port = xxxxx