Jim, It sounds like something on the remote side (e.g. a .bashrc file) is foolishly setting the DISPLAY variable to a wrong value. ssh never sets DISPLAY to remote:0.0, it uses values like remote:10.0 or localhost:10.0. First of all you should remove the dangerous and unnecessary xhost commands. Then experiment to check (a) you really are using X forwarding (b) $DISPLAY is not being overwritten Try ssh -X remotehost 'echo $DISPLAY' and make sure the display number is non-zero. Bob On Wed, 27 Mar 2002, Jim Westbrook wrote:
After updating openssh to v3.1p1 (under SuSE 7.3), I am no longer able to access X based apps from remote using SSH2 (SuSE 7.1). It's being called from a script executed from an xterm:
#! /bin/sh xhost + ssh <destination> xhost -
The connection itself works fine, but if I attempt to run an X dependent application, I get an error - unable to connect to DISPLAY remote:0.0.
I have edited the configuration file to enable X11forwarding.
What next?
JimW
-- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com Security-related bug reports go to security@suse.de, not here
============================================================== Bob Vickers R.Vickers@cs.rhul.ac.uk Dept of Computer Science, Royal Holloway, University of London WWW: http://www.cs.rhul.ac.uk/home/bobv Phone: +44 1784 443691