Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7 - Fedora17

13 bytes removed, 10:42, 20 July 2010
Investigation 6: How do you use ssh to tunnel other traffic.
** <code>ssh -L 20808:fedora1:80 user@fedora1
{{Admon/note | Note! | The -L (which means Local port) takes one argument of <pre><local-port>:<connect-to-host>:<connect-to-port></pre> The command basically connects your local port of 20808 to the remote port of 80 on fedora1. This means all requests to 20808 on the localhost (fedora2) are actually tunnelled through your ssh connection to port 22 on fedora1 and then delivered to port 80 on fedora1, bypassing the firewall. }}
* Once the tunnel is established use <code>netstat</code> to verify the port 20808 is listening on fedora2
* Now using the browser on fedora2 connect to http://localhost:20808
* You should see the index.html page on fedora1.