[CentOS] run firefox via an ssh tunnel

Thu Nov 12 13:55:23 UTC 2020
Leon Fauster <leonfauster at googlemail.com>

Am 12.11.20 um 13:56 schrieb Bernstein, Noam CIV USN NRL (6393) 
Washington DC (USA) via CentOS:
> 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.
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> https://lists.centos.org/mailman/listinfo/centos
> 


This would not allow having access to SNI hostings (without dns tricks).

Anyway, the original question was to forward a _native_ OSX output via 
X11 to the linux workstation. That is not possible but you can enable
remotedesktop service on the osx machine and passing this through a ssh
tunnel like "-L 5900:localhost:5900 -N" and accessing the osx machine 
via VNC.

A complete different option is: having a opensource port distribution 
installed (like macports.org) and installing firefox that runs under
https://www.xquartz.org/.

Not quite centos related ...

--
Leon