Remote Port Fowarding
Overview
rTerm allows clients to forward remote ports to their local machine. This is useful to access a variety of services that are running remotely (Webservers, RDP, VNC, etc...). In this example, we will forward web traffic on a remote port [8080] to a local port [80].
Prerequisites
- rTerm Agent and CLI installed on the server/client
- SSH public key is on the server; private key on the client
Port Forwarding
To forward a remote port to a local port, add the --portForward
flag to the rterm-cli command on the client machine with "localport:remoteport".
In the example below, 80 is the local port and 8080 is the remote traffic we will be sent from.
rterm-cli --portFoward 80:8080
Accessing the Port
The remote port will be available on localhost, 127.0.0.1 or 0.0.0.0 depending on your platform. In our simple example here, we could see the web server on http://localhost:80 or http://localhost (80 is the default port).