[CentOS] run firefox via an ssh tunnel

Thu Nov 12 12:56:15 UTC 2020
Bernstein, Noam CIV USN NRL (6393) Washington DC (USA) <noam.bernstein at nrl.navy.mil>

If the point is to access a specific web site only the remote machine can get to, you can also do it with port forwarding:
ssh -L 8000:ip_of_web_site_to_access_from_remote:443 remote_machine
and then locally run any browser, and access
https://localhost:443
(assuming it's https.  If it's plain http, use "http" and 80).  Note that you'll be breaking some aspects of https security such as man-in-the-middle protection and perhaps others, and you'll need to accept some security exceptions.

This will be useful if the point is to get to a web site only only the remote machine can connect to, but all the browser code/plugins will be the local ones.