Web access via ssh tunnel PDF Print E-mail
Written by Markus Schönhaber   
Wednesday, 16 July 2008 20:45
The scenario is that one has a server with no GUI, but needs to access for example a router with a web browser like FireFox.
This can be done by setting up a link with ssh to a desktop computer with FireFox, GUI and all the pretty stuff.

Use the browser on your remote computer to access the router's web interface via a ssh tunnel. I. e. if the router is accessible from your server via, say 192.168.0.1, do something like:
ssh -L 8000:192.168.0.1:80 [ip or name of server]
and enter
http://localhost:8000
in the address bar of the browser on machine you ssh'ing from.

You may, of course, chose the local port (8000 in the above example) to your liking. It should be greater than 1024, though, since you would need root privileges otherwise.
Last Updated on Tuesday, 14 October 2008 04:33
 

Add comment

To be able to vote and have easier access to write comments, etc., go to Login and register yourself.
Your user name and email will never leave this website.


Security code
Refresh