LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-30-2011, 04:59 AM   #1
spoovy
Member
 
Registered: Feb 2010
Location: London, UK
Distribution: Scientific, Ubuntu, Fedora
Posts: 373

Rep: Reputation: 43
ssh -X forwarding - what's going on here then!?


I am using "ssh -X spoovy@server" to connect to several different remote server machines so I can run remote X apps on my local display. I clearly need to do some background reading on X, but i've got a couple of quick questions in the meantime if anyone wants to help me out.

After initiating an "ssh -X" session, I find that on some machines when i run a remote binary (say firefox) the window appears on my local screen with all my local firefox settings (including plugins etc). On other server machines this doesn't happen though - the user settings on the remote machine are used instead. In all cases there is a user "spoovy" on both local and remote machine. What are the rules on this behaviour; how does ssh -X decide whether to use local or remote user settings?

Also, I notice that when once I have an ssh -X session active (initiated from gnome-terminal, say), locally launched firefox binaries (ie from gnome menu) display the same phenomenon - ie sometimes the new firefox window will use the local firefox profile, sometimes the remote one. Why should a locally launched firefox binary use a remote profile, just because a terminal (being a completely seperate process) has a remote connection open? Doesn't make sense to me.

Thanks in advance,

spoov

Last edited by spoovy; 08-30-2011 at 05:51 AM.
 
Old 08-30-2011, 05:42 AM   #2
hi2arun
Member
 
Registered: Apr 2010
Distribution: Fedora
Posts: 109
Blog Entries: 4

Rep: Reputation: 34
That sounds interesting !!

When ssh is used with -X option, it sets up DISPLAY environ on the remote machine to be tunneled over SSH. Well. But it cannot export the remote FF profile and override the local settings.

What happens if you already ran a local FF instance and do FF from remote over 'ssh -x'?
 
Old 08-30-2011, 11:45 PM   #3
spoovy
Member
 
Registered: Feb 2010
Location: London, UK
Distribution: Scientific, Ubuntu, Fedora
Posts: 373

Original Poster
Rep: Reputation: 43
I've not been able to get back onto the machine(s) in question again yet, but i'm thinking it must be something to do with profiles being stored in RAM (where I think you were heading!). This would fit the symptoms (possibly): once ff has been launched from either local or remote machine, the profile it used is sticking around in RAM, to be used by any subsequent binary, whatever its origin, until RAM is flushed. I'll test when I get time.

edit - or is the whole thing being, binary and profile, kept in RAM?

Last edited by spoovy; 08-30-2011 at 11:50 PM.
 
Old 08-31-2011, 05:00 AM   #4
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
Sticking in RAM on which machine? When you start Firefox remote, it will use the remote profiles, as the remote Firefox won’t have access to anything on the client.

But: some settings for the locale (man locale) will be forwarded from your local machine to the remote session by ssh and honored there. This might indeed change the behavior of some remote applications.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH X forwarding krusty_lab AIX 10 01-02-2008 09:36 AM
SSH X forwarding discala Linux - Networking 8 01-05-2007 06:05 AM
SSH X forwarding djgerbavore Linux - Networking 1 11-17-2005 09:40 AM
X forwarding via SSH bd1308 Linux - Software 4 08-30-2005 07:13 PM
ssh and X-forwarding Björneborg Linux - Networking 2 02-19-2004 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration