Re: Accessing RedHat Linux 8 system
Re: Accessing RedHat Linux 8 system
- Subject: Re: Accessing RedHat Linux 8 system
- From: Jonas Maebe <email@hidden>
- Date: Thu, 27 Feb 2003 21:52:37 +0100
On donderdag, feb 27, 2003, at 21:36 Europe/Brussels, bryan wrote:
I have tried a few programs and they all work if i specify them on
the command line with my ssh login, but fail if specified after I
have logged in and are attempting to execute from the remote shell.
my ssh version...
That's irrelevant, this setting only matters when you log in remotely
using ssh. When you login locally, ssh isn't used at all (and so its
config options aren't either).
Thanks Jonas,
I often (and this is obviously no exception) don't explain myself well
enough. Sorry about that.
And I often read faster than advisable, so I quite often miss important
details. Sorry about that too :)
This works:
[habanero:~] bryan% ssh -X ecstasy /usr/bin/program
Also if "program" is an X program?
and this does not:
[habanero:~] bryan% ssh -X e
[bryan@ecstasy bryan]$ /usr/bin/same-gnome
the error reported:
X11 connection rejected because of wrong authentication.
Gdk-ERROR **: X connection to ecstasy:10.0 broken (explicit kill or
server shutdown).
I still don't understand why DISPLAY is set to ecstasy:10.0 and not
localhost:10.0. Maybe you could try changing that manually and see what
happens.
-Using the traditional method of using xhost to allow the connection
and **NOT** attempting to use the "-X" flag works.
That's a completely separate mechanism, so it's logical that these
problems don't hinder that method.
-Are you even supposed to be able to launch xapplications after the
ssh login completes (not on the same line as the ssh login command)
and have them display on a remote desktop when using the "-X" flag" ?
Sure, I do it all the time (in fact, until I saw your mail I had never
tested specifying a command as "parameter" to ssh).
-I have also added your file ~.ssh/rc to ecstasy (remote LinuxPPC
machine) and unfortunately this is still not helping.
Maybe you could put a "echo $DISPLAY" in that file to see what that one
says (although I don't know whether it's executed before or after your
remote shell gets initialized).
any other ideas?
Well, if the answer to my first question in this mail ("Also if
"program" is an X program?") is a resounding YES, then it seems obvious
that somehow a login script (that is automatically executed when your
shell starts on the Linux box) changes the DISPLAY variable. Maybe if
you specify a command together with the ssh line, your default shell
isn't started (maybe just /bin/sh is with a minimal environment) or
maybe it doesn't execute the same login/init scripts that it otherwise
uses, so the DISPLAY variable doesn't get changed in that case.
Note that the script that changes the DISPLAY variable doesn't
necessary have to be your .profile/.bash_profile/.tcsh_rc/..., it can
just as well be something in /etc (/etc/csh.login and things like that)
which is automatically executed by your remote shell. Maybe a 'grep -r
DISPLAY /etc/*' will give you some hints about that.
Jonas
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.