On Wed, 11 Nov 2020 at 17:45, R C <cjvijf at gmail.com> wrote:> I do it all the time. > > > make sure you forward X11, on the ssh server side, and login with > ssh -X me at myhost.whatever > > start firefox with: > > /usr/bin/firefox -no-remote if you don't want the remote pages ending > up in your local browser > > or if you don't care, just run firefox without -no-remote > >Don't you have to make sure that the Firefox on the MacOS-X system is using X11? It normally uses the native MacOS windowing system which is not X.> > or however you start firefox on a mac. > > > Ron > > > On 11/11/20 3:39 PM, S Bob wrote: > > Hi all; > > > > > > I'm trying to setup an ssh tunnel so I can run firefox on a remote > > laptop and have the display locally. > > > > > > I have 2 laptops > > > > local = CentOS 7 > > > > remote = mac OSX 10.15.7 > > > > > > I want to create an ssh tunnel on the local CentOS 7 laptop, then run > > firefox on the mac with the display showing up on the CentOS laptop. > > > > Is this doable? > > > > > > Thanks in advance > > > > _______________________________________________ > > CentOS mailing list > > CentOS at centos.org > > https://lists.centos.org/mailman/listinfo/centos > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- Stephen J Smoogen.
yeah ..? it would need to run X11 On 11/11/20 4:04 PM, Stephen John Smoogen wrote:> On Wed, 11 Nov 2020 at 17:45, R C <cjvijf at gmail.com> wrote: > >> I do it all the time. >> >> >> make sure you forward X11, on the ssh server side, and login with >> ssh -X me at myhost.whatever >> >> start firefox with: >> >> /usr/bin/firefox -no-remote if you don't want the remote pages ending >> up in your local browser >> >> or if you don't care, just run firefox without -no-remote >> >> > Don't you have to make sure that the Firefox on the MacOS-X system is using > X11? It normally uses the native MacOS windowing system which is not X. > > > >> or however you start firefox on a mac. >> >> >> Ron >> >> >> On 11/11/20 3:39 PM, S Bob wrote: >>> Hi all; >>> >>> >>> I'm trying to setup an ssh tunnel so I can run firefox on a remote >>> laptop and have the display locally. >>> >>> >>> I have 2 laptops >>> >>> local = CentOS 7 >>> >>> remote = mac OSX 10.15.7 >>> >>> >>> I want to create an ssh tunnel on the local CentOS 7 laptop, then run >>> firefox on the mac with the display showing up on the CentOS laptop. >>> >>> Is this doable? >>> >>> >>> Thanks in advance >>> >>> _______________________________________________ >>> CentOS mailing list >>> CentOS at centos.org >>> https://lists.centos.org/mailman/listinfo/centos >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos >> >
Bernstein, Noam CIV USN NRL (6393) Washington DC (USA)
2020-Nov-12 12:56 UTC
[CentOS] run firefox via an ssh tunnel
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.