Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Dec 042010
 

Simple port forwarding using SSH

Answer:

Assume you are working at office, you want to browse the example.com securely, you can do so by using a computer at home (e.g. HOME_IP)to build a secure tunnel using ssh.

# sudo ssh -L 80:example.com:80 HOME_IP

Then in your browser, type http://localhost and you can view the example.com securely.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>