How to access lee web server using ssh tunnel

    WINDOWS 2000, XP

Before reading further make sure your SSH Secure Client application is already installed on your computer. If not, follow the instructions in How to install SSH
Close all applications except a Web browser with instructions.
Start the Secure Shell Client but don't connect to the Linux Lab. Instead, click on Profiles, click on Edit Profiles, click on Linux Lab profile which should be present if you followed instructions in How to install SSH
Select the Tunneling tab, we are configuring Outgoing tunnel. Click Add, set
Display Name to web,
Type to TCP,
Listen Port to 8080,
Destination Host to localhost,
Destination Port to 80.
Click OK. Click OK one more time at the bottom of the window.
Close the Secure Shell Client. Now the tunnel will run every time you log into your Linux Lab account.

Using the Tunnel:
Start Secure Shell Client, and this time log into your Linux Lab account.
Open a web browser ( Internet Explorer for instance ) on your home computer.
In Internet Explorer open location http://localhost:8080. You should see lee's web server home page
At this point you can view your web pages. For example, if your username is abcd123
go to http://localhost:8080/~abcd123

  • Important Notes!
    When viewing web pages via tunneling, please remember:

    1. your SSH connection must stay opened to view lee's web pages
    2. if http://localhost:8080/~abcd123 does not work, try http://127.0.0.1:8080/~abcd123 instead
    3. if you did not find Linux Lab profile, choose the one which has lee.cs.miami.edu as a host machine


      LINUX


    First make sure SSH client is installed, if not, install it from media which comes with your distribution or find the correct version on the web.
    After ssh client is installed, open a Unix shell and do
    ssh -L 8080:localhost:80 lee.cs.miami.edu -l your_user_name_in_the_linux_lab
    Open Netscape or other web browser on your home computer. In Location field type http://localhost:8080. Lee's webserver main page will be seen.
    At this point you can view your web pages. For example, if your username is abcd123
    go to http://localhost:8080/~abcd123

  • Important Notes! When viewing web pages via tunneling, please remember:

    1. your SSH connection must stay opened to view lee's web pages
    2. if http://localhost:8080/~abcd123 does not work try http://127.0.0.1:8080/~abcd123 instead

    Irina Kaliman, System Administrator