Re: remote ssh to machine how display firefox

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 07/12/2007, Ross Cavanagh <ross-cavanagh@xxxxxxxxxxxx> wrote:
> John R Pierce wrote:
> > Jerry Geis wrote:
> >> I can ssh into a remote machine.
> >> I can start X on that machine with startx
> >>
> >> How do I then start firefox on that machine (from the ssh prompt) and
> >> have it display on my machine in my office.
> >>
> >> So I want to be using firefox on the remote machine but displaying the
> >> screen output from firefox in my office.
> >> Both boxes are running centos 5.
> >
> > don't startx on the REMOTE machine, have it running on the LOCAL machine.
> >
> > local$ ssh -X remote
> > ...authenticate...
> > remote$ firefox &
> >
> > and firefox should open on the local...
> or you can do a port forward if you wanted to just use your local browser.
>
> ssh -L <local-port>:localhost:<remote-port> <user>@<destination>
>
> eg. ssh -L 8080:localhost:80 root@xxxxxxxxxxxxxx
>
> then, in your local browser, simply type localhost:8080 as the url to
> display port 80 from the remote server.

That's a good one.

You can take it further (if you have more than one site/port to
connect to) - install a proxy on the remote machine (e.g. "squid" or
maybe apache's mod_proxy) and forward a tunnel to it as you describe
then setup localhost:8080 as your proxy (firefox extensions can allow
you to use this proxy only for certain sites).

Cheers,

--Amos
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux