Networking Forums

Networking Forums > Computer Networking > Linux Networking > firefox over ssh

Reply
Thread Tools Display Modes

firefox over ssh

 
 
Mark Atherton
Guest
Posts: n/a

 
      11-21-2006, 07:41 PM
When I ssh into a remote system and run firefox I expect that with
"X11Forwarding yes" in my sshd_config on the remote system I should
execute firefox on the remote system but view it locally.

What seems to happen is that firefox runs on the local machine*. I'm
sure this happens by design, but I can't find out how it works, why it
might be desirable, or how to disable it.

I've looked at http://www.openssh.org/ but can't find the relevant docs.
Any pointers would be welcome.

Mark Atherton


* evidence: (1) when I ssh into a fresh linux installation and run
firefox it runs with the configuration setup as for my local system. (2)
ps -Al shows no firefox (or firefox-bin) running on the remote machine.
 
Reply With Quote
 
 
 
 
Bob Hauck
Guest
Posts: n/a

 
      11-21-2006, 08:12 PM
On Tue, 21 Nov 2006 20:41:34 +0000, Mark Atherton <(E-Mail Removed)> wrote:

> When I ssh into a remote system and run firefox I expect that with
> "X11Forwarding yes" in my sshd_config on the remote system I should
> execute firefox on the remote system but view it locally.
>
> What seems to happen is that firefox runs on the local machine*.


If you have an instance of firefox on running on the local machine,
firefox will detect that and simply tell that instance to open a new
window. If you have no local copy of firefox running then it will
run on the remote machine as you expect.


--
-| Bob Hauck
-| Hooray for San Fancisco values!
-| http://www.haucks.org/
 
Reply With Quote
 
Robert Harris
Guest
Posts: n/a

 
      11-21-2006, 08:26 PM
Mark Atherton wrote:
> When I ssh into a remote system and run firefox I expect that with
> "X11Forwarding yes" in my sshd_config on the remote system I should
> execute firefox on the remote system but view it locally.


ssh -X

robert
>
> What seems to happen is that firefox runs on the local machine*. I'm
> sure this happens by design, but I can't find out how it works, why it
> might be desirable, or how to disable it.
>
> I've looked at http://www.openssh.org/ but can't find the relevant docs.
> Any pointers would be welcome.
>
> Mark Atherton
>
>
> * evidence: (1) when I ssh into a fresh linux installation and run
> firefox it runs with the configuration setup as for my local system. (2)
> ps -Al shows no firefox (or firefox-bin) running on the remote machine.

 
Reply With Quote
 
General Schvantzkoph
Guest
Posts: n/a

 
      11-21-2006, 08:46 PM
On Tue, 21 Nov 2006 20:41:34 +0000, Mark Atherton wrote:

> When I ssh into a remote system and run firefox I expect that with
> "X11Forwarding yes" in my sshd_config on the remote system I should
> execute firefox on the remote system but view it locally.
>
> What seems to happen is that firefox runs on the local machine*. I'm
> sure this happens by design, but I can't find out how it works, why it
> might be desirable, or how to disable it.
>
> I've looked at http://www.openssh.org/ but can't find the relevant docs.
> Any pointers would be welcome.
>
> Mark Atherton
>
>
> * evidence: (1) when I ssh into a fresh linux installation and run
> firefox it runs with the configuration setup as for my local system. (2)
> ps -Al shows no firefox (or firefox-bin) running on the remote machine.


Put the following in your ~/.ssh/config file

Host *
ForwardX11 yes
ForwardX11Trusted yes
StrictHostKeyChecking no
ForwardAgent yes
BatchMode yes
 
Reply With Quote
 
Mark Atherton
Guest
Posts: n/a

 
      11-22-2006, 06:09 AM
Robert Harris wrote:
> Mark Atherton wrote:
>> When I ssh into a remote system and run firefox I expect that with
>> "X11Forwarding yes" in my sshd_config on the remote system I should
>> execute firefox on the remote system but view it locally.

>
> ssh -X


Thanks, but that just seems to enable X11 forwarding - from man ssh:

"-X Enables X11 forwarding. This can also be specified on a
per-host basis in a configuration file."

I already have that working - I can run other X apps on the remote
machine and they display locally.

Mark
 
Reply With Quote
 
Mark Atherton
Guest
Posts: n/a

 
      11-22-2006, 06:10 AM
General Schvantzkoph wrote:
> On Tue, 21 Nov 2006 20:41:34 +0000, Mark Atherton wrote:
>
>> When I ssh into a remote system and run firefox I expect that with
>> "X11Forwarding yes" in my sshd_config on the remote system I should
>> execute firefox on the remote system but view it locally.
>>
>> What seems to happen is that firefox runs on the local machine*. I'm
>> sure this happens by design, but I can't find out how it works, why it
>> might be desirable, or how to disable it.
>>
>> I've looked at http://www.openssh.org/ but can't find the relevant docs.
>> Any pointers would be welcome.
>>
>> Mark Atherton
>>
>>
>> * evidence: (1) when I ssh into a fresh linux installation and run
>> firefox it runs with the configuration setup as for my local system. (2)
>> ps -Al shows no firefox (or firefox-bin) running on the remote machine.

>
> Put the following in your ~/.ssh/config file
>
> Host *
> ForwardX11 yes
> ForwardX11Trusted yes
> StrictHostKeyChecking no
> ForwardAgent yes
> BatchMode yes


Doesn't any difference. Thanks anyway. I've had a good look through man
ssh_config and nothing there helps either.

Mark
 
Reply With Quote
 
Mark Atherton
Guest
Posts: n/a

 
      11-22-2006, 06:15 AM
Bob Hauck wrote:
> On Tue, 21 Nov 2006 20:41:34 +0000, Mark Atherton <(E-Mail Removed)> wrote:
>
>> When I ssh into a remote system and run firefox I expect that with
>> "X11Forwarding yes" in my sshd_config on the remote system I should
>> execute firefox on the remote system but view it locally.
>>
>> What seems to happen is that firefox runs on the local machine*.

>
> If you have an instance of firefox on running on the local machine,
> firefox will detect that and simply tell that instance to open a new
> window. If you have no local copy of firefox running then it will
> run on the remote machine as you expect.


You are right! When firefox isn't running locally a remote instance is
run. If I run firefox locally *after* starting a remote instance then a
new remote instance is run.

I'm starting to wonder whether this isn't some weirdness of the X protocol.

Any ideas how can I stop ssh or X or whatever trying to guess where I
want to run an application?

Mark
 
Reply With Quote
 
left_coast
Guest
Posts: n/a

 
      11-22-2006, 06:19 AM
Mark Atherton wrote:

> When I ssh into a remote system and run firefox I expect that with
> "X11Forwarding yes" in my sshd_config on the remote system I should
> execute firefox on the remote system but view it locally.
>
> What seems to happen is that firefox runs on the local machine*. I'm
> sure this happens by design, but I can't find out how it works, why it
> might be desirable, or how to disable it.
>
> I've looked at http://www.openssh.org/ but can't find the relevant docs.
> Any pointers would be welcome.
>
> Mark Atherton
>
>
> * evidence: (1) when I ssh into a fresh linux installation and run
> firefox it runs with the configuration setup as for my local system. (2)
> ps -Al shows no firefox (or firefox-bin) running on the remote machine.


Um, don't jump all over me for this but are you sure you are running form
the correct system? If you ssh into the remote system then do a `hostname`.
does it show the hostname you expect? I know it sounds obvious, but
sometimes people overlook the obvious.
 
Reply With Quote
 
Paul Black
Guest
Posts: n/a

 
      11-22-2006, 07:52 AM
Mark Atherton wrote:
> You are right! When firefox isn't running locally a remote instance is
> run. If I run firefox locally *after* starting a remote instance then a
> new remote instance is run.
>
> I'm starting to wonder whether this isn't some weirdness of the X protocol.
>
> Any ideas how can I stop ssh or X or whatever trying to guess where I
> want to run an application?


It's Firefox deciding, not X or ssh.

--
Paul
 
Reply With Quote
 
Joshua Baker-LePain
Guest
Posts: n/a

 
      11-22-2006, 11:38 AM
On 2006-11-22, Mark Atherton <(E-Mail Removed)> wrote:
>
> You are right! When firefox isn't running locally a remote instance is
> run. If I run firefox locally *after* starting a remote instance then a
> new remote instance is run.
>
> I'm starting to wonder whether this isn't some weirdness of the X protocol.
>
> Any ideas how can I stop ssh or X or whatever trying to guess where I
> want to run an application?


As someone else noted, firefox is deciding this, not X or ssh. And this
behavior (annoying as it is) changed recently. I've found one workaround to
get firefox to actually start on a remote machine if you've already got
a local instance running. After 'ssh -X'ing into the remote host, start
firefox with the following command:

env MOZ_NO_REMOTE=1 firefox -P

The "-P" tells firefox to start with the profile selector. For some reason,
'env MOZ_NO_REMOTE=1 firefox' isn't enough -- you need the "-P".

--
Joshua Baker-LePain
Department of Biomedical Engineering
Duke University
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to block pop pup in firefox.. lifesuckedme Broadband Hardware 1 09-11-2008 03:31 AM
OT: Firefox 3 Is released naza Broadband 3 06-17-2008 06:59 PM
OT:Firefox 1.5.0.2 / stability ? Colin Wilson Broadband 11 04-30-2006 07:24 PM
Any Firefox users? Terry Pinnell Broadband 19 07-31-2005 12:26 AM
OT:Who told me about FireFox? jojo Wireless Internet 0 11-12-2004 09:22 PM



1 2 3 4 5 6 7 8 9 10 11