Monday, April 29, 2024
9
rated 0 times [  9] [ 0]  / answers: 1 / hits: 13034  / 2 Years ago, tue, february 15, 2022, 10:23:30

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 [email protected]
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.


More From » command-line

 Answers
7

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



ssh -ND 8080 [email protected]


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.


[#30852] Wednesday, February 16, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ntlesslving

Total Points: 123
Total Questions: 109
Total Answers: 113

Location: South Korea
Member since Fri, Sep 11, 2020
4 Years ago
;