Creating a tunnel using ssh

If you want to forward a port to your computer from another, and you can create a ssh connection to the computer, then creating the actual tunnel is very simple.

This exemple forwards the port 7000 from that computer to a port on our computer. In this case the local port in 5000

ssh -N -p 22 user@www.server.com -L 5000/localhost/7000

Leave a Reply

Your email address will not be published. Required fields are marked *