Ubuntu – Use real browser instead of w3m on SSH connections

browserremote accesssshw3m

I am using Ubuntu as desktop and server OS.
When I am logged in to the server via ssh on terminal and have to view a web-page (localhost) on the server I use w3m (w3m localhost).

Unfortunately w3m is not that easy to handle, as the page has some big menus and uses jQuery. So I am wondering if it is possible to use a browser on my Desktop to connect to the server via SSH with a real browser (Firefox or Chrome).

Basically it would require to connect with a browser on my desktop to the server over SSH with username and password, and open on that server localhost.

Is this possible by default, or are there any add-ons for Firefox/Chrome? I would prefer Firefox.

Best Answer

Use ssh port forwarding.

Connect to the remote server with something like this:

ssh -L 8080:localhost:80 user@remoteserver

Now, point your local browser to localhost:8080. It should be forwarded to localhost:80 in the remote server.

Related Question