Difference between revisions of "Port Forwarding"
Jump to navigation
Jump to search
(This post shows how to do a port forwarding to an http web server, when having access to it via ssh.) |
(No difference)
|
Latest revision as of 15:56, 22 May 2023
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