Open main menu

CDOT Wiki β

Changes

OPS235 Lab 7 - Fedora17

367 bytes added, 15:13, 17 March 2010
no edit summary
** <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.
* Close the ssh connection and verify that the port 20808 is no longer listening.
* Answer the Investigation 6 question in your lab log book.
9
edits