Ubuntu – Command line web browser using SSH, is there any way i can use

browsercommand linelynxnetworkingssh

I am connected using SSH to a Ubuntu Box which is behind firewall and routers. From that Ubuntu box i need to open a router web page and login to the router for doing some changes.

How can i from command line open a web-browser which can allow me to do the similar web browsing in that LAN network?

I used lynx but its not helping me to do the main job. Anything else.

EDIT: using lynx i get this problem where i need javascript to have router web access.

<<<                                                                                                                                                   Linksys Smart Wi-Fi
JavaScript is required

   JavaScript is required to use Linksys Smart Wi-Fi Tools. Please change the security settings in your browser to enable JavaScript.

































: q
  Arrow keys: Up and Down to move.  Right to follow a link; Left to go back.
 H)elp O)ptions P)rint G)o M)ain screen Q)uit /=search [delete]=history list 

EDIT:

Step 1: remote laptop

$ ssh -ND 9009 sun@82.x.x.x
password: ......

Step 2: open firefox > do the settings like this:

enter image description here

Step 3: go to site icanhazip.com and start surfing

it works.

Best Answer

You could use SSH as a proxy and then use a local browser to use that proxy.

ssh -ND 8080 user@server.example.com

That sets a SOCKS proxy. Just edit your browser's proxy settings to IP: localhost Port: 8080 and your traffic is going out over SSH.

Just remember that all your browser's traffic is going through the proxy until you disable it so don't do anything against network policy while you're logged in. I might suggest using a private instance of Chrome, for example.

Note: This probably won't work for domain lookups so you'll need the local (to the SSH host) IP of the router.