Port Forwarding

Revision as of 15:56, 22 May 2023 by Daniel (talk | contribs) (This post shows how to do a port forwarding to an http web server, when having access to it via ssh.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Port Forwarding

Situation: There is a web server that only offers non-secure (HTTP) connection. And, you have SSH access to it. For this example the web server IP is 192.168.0.20, and port number is 10000.


1. Open a Terminal and SSH to the server using this command format: ssh -L 8080:localhost:10000 username@server-ip

2. Once the port forwarding connection described in step one is established, open your browser and connect to the web server: http://192.168.0.20:10000


That's it.


Tags: #ssh #portforwarding #port #webserver #http #localhost