On Thu, Feb 09, 2006 at 05:25:02PM -0500, Zhicheng Xia wrote:
> I have openSSH 4.2p installed for debian Sarge 3.1 and Solaris 2.8. The
> remote x display works between Solaris systems, it also works between
> debian systems. However when I tried to do a Solaris remote Xterm on my
> debian box, it no longer work. Could someone help me here please???
[...]
> Choose s)un x)window t)ek d)umb g)raphon [s/x/t/d/g(default)]:x
> input display server name: xia
> m200:xia 1>xterm
> xterm Xt error: Can't open display: xia:0.0
The $DISPLAY variable is probably wrong. By default, OpenSSH will
create a display starting at 10 and pointing to localhost (check the
X11DisplayOffset and X11UseLocalhost settings in sshd_config). I suspect
that a shell startup script on your Solaris host is messing with $DISPLAY.
As a general rule, if you need to mess with $DISPLAY for ssh x11
forwarding then something is wrong. (Actually, this isn't always true,
but if you know that then you also know when it would be appropriate :-)
--
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69
Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.