• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing RedHat Linux 8 system
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing RedHat Linux 8 system


  • Subject: Re: Accessing RedHat Linux 8 system
  • From: Jonas Maebe <email@hidden>
  • Date: Thu, 27 Feb 2003 10:39:37 +0100

On woensdag, feb 26, 2003, at 21:40 Europe/Brussels, bryan wrote:

This is the error that should be above (If I had been paying attention like a good little boy)
habanero =Mac OS X 10.2.4 w/ X11 (second beta)
ecstasy =LinuxPPC


		#show display set on Mac OS X/X11 (from xterm)
[habanero:~] bryan% env | grep DISPLAY
DISPLAY=habanero:0.0

This is correct.

#when the remote application is specified with the ssh command it appears as you would expect.
[habanero:~] bryan% ssh -X ecstasy /usr/bin/same-gnome &
[1] 3831


		#show display set on ecstasy/LinuxPPC
[habanero:~] bryan% ssh -X ecstasy
[bryan@ecstasy bryan]$ env | grep DISPLAY
DISPLAY=ecstasy:10.0

This is wrong, unless maybe "X11UseLocalhost no" is in the sshd_config file of ecstasy. Otherwise this will be:


[jonagold:~] jonas% ssh -X jmaebe@neumann
jmaebe@neumann's password:
set jmaebe@neumann:~$ set |grep DISPLAY
DISPLAY=localhost:10.0

As you can see, ssh sets it to localhost by default, so it seems some login script on the remote machine changes this.

Also check whether you have a file called "rc" in ~/.ssh on the remote machine. If so, move it out of the way (that's also a script that is automatically executed, but only if you login using ssh). You may also want to move to the .Xauthority file in your homedir out of the way for the sake of testing (keep backups though, so you can restore them if necessary).

d) (very unlikely in this case) you are trying to run a very old X program and are using sshd 3.1 (or maybe even 3.0, I don't remember) or higher on the remote server. In that case, you have to add "X11UseLocalhost no" to the sshd_config on the remote machine. Note that adding this option is potentially more insecure (though there are no known exploits afaik) that the default setting of "yes".

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 loged 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).


If all else fails, you could try gutting the following in ~/.ssh/rc on the remote machine (permissions 644 for the file):

****
if read proto cookie && [ -n "$DISPLAY" ]; then
if [ `echo $DISPLAY | /bin/cut -c1-10` = 'localhost:' ]; then
# X11UseLocalhost=yes
/usr/bin/X11/xauth add unix:`echo $DISPLAY |/bin/cut -c11-` $proto $cookie
else
# X11UseLocalhost=no
/usr/bin/X11/xauth add $DISPLAY $proto $cookie
fi
fi
***


This should not be necessary for such a recent version of OpenSSH however, this is mainly useful for older software installations (though it's normally not necessary once you set "X11UseLocalhost no").


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.

  • Follow-Ups:
    • Re: Accessing RedHat Linux 8 system
      • From: bryan <email@hidden>
References: 
 >Re: Accessing RedHat Linux 8 system (From: bryan <email@hidden>)

  • Prev by Date: Re: x11 needs restart after sleep
  • Next by Date: Copy paste between X and Aqua
  • Previous by thread: Re: Accessing RedHat Linux 8 system
  • Next by thread: Re: Accessing RedHat Linux 8 system
  • Index(es):
    • Date
    • Thread