Port Forwarding

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