f



xclock fail with "Error: Can't open display:" on "ssh -X"

 I can ssh -X to a RHEL4 linux and a HP-UX B.11.23 U ia64 computer
from a FC6 linux computer.
I can run
xclock or xterm
on the RHEL4 linux computer.
However, running
xclock or xterm
on the HP-UX B.11.23 U ia64 computer has these errors:
bash-3.2# xclock
Error: Can't open display:
Error: Couldn't find per display information

bash-3.2# xterm
xterm Xt error: Can't open display: %s

bash-3.2# sshd -version
sshd: illegal option -- v
OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep
2006
HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version

Using "ssh -Y" to login to the RHEL4 and HPUX computer get the same
result.
0
1/5/2009 9:18:00 PM
comp.sys.hp.hpux 4408 articles. 1 followers. dewi.bening (7) is leader. Post Follow

7 Replies
3383 Views

Similar Articles

[PageSpeed] 14

TsanChung wrote:
>  I can ssh -X to a RHEL4 linux and a HP-UX B.11.23 U ia64 computer
> from a FC6 linux computer.
> I can run
> xclock or xterm
> on the RHEL4 linux computer.
> However, running
> xclock or xterm
> on the HP-UX B.11.23 U ia64 computer has these errors:
> bash-3.2# xclock
> Error: Can't open display:
> Error: Couldn't find per display information
> 
> bash-3.2# xterm
> xterm Xt error: Can't open display: %s
> 
> bash-3.2# sshd -version
> sshd: illegal option -- v
> OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep
> 2006
> HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version
> 
> Using "ssh -Y" to login to the RHEL4 and HPUX computer get the same
> result.

Ensure that sshd_config has
X11Forwarding yes

sshd_config lives in the package's "etc" direcory, on my ssh distro
this is /opt/ssh/etc

-- 
echo imhcea\.lophc.tcs.hmo |
sed 's2\(....\)\(.\{5\}\)2\2\122;s1\(.\)\(.\)1\2\11g;1s;\.;::;2'
0
Michael
1/6/2009 9:06:18 AM
On Jan 6, 4:06=A0am, Michael Tosch <eed...@NO.eed.SPAM.ericsson.PLS.se>
wrote:
> TsanChung wrote:
> > =A0I can ssh -X to a RHEL4 linux and a HP-UX B.11.23 U ia64 computer
> > from a FC6 linux computer.
> > I can run
> > xclock or xterm
> > on the RHEL4 linux computer.
> > However, running
> > xclock or xterm
> > on the HP-UX B.11.23 U ia64 computer has these errors:
> > bash-3.2# xclock
> > Error: Can't open display:
> > Error: Couldn't find per display information
>
> > bash-3.2# xterm
> > xterm Xt error: Can't open display: %s
>
> > bash-3.2# sshd -version
> > sshd: illegal option -- v
> > OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep
> > 2006
> > HP-UX Secure Shell-A.04.50.021, HP-UX Secure Shell version
>
> > Using "ssh -Y" to login to the RHEL4 and HPUX computer get the same
> > result.
>
> Ensure that sshd_config has
> X11Forwarding yes
>
> sshd_config lives in the package's "etc" direcory, on my ssh distro
> this is /opt/ssh/etc
>
> --
> echo imhcea\.lophc.tcs.hmo |
> sed 's2\(....\)\(.\{5\}\)2\2\122;s1\(.\)\(.\)1\2\11g;1s;\.;::;2'

 sshd_config has
 X11Forwarding yes

I do
bash-3.2# ps -ef |grep sshd
   root 20369     1  0 09:51:35 ?         0:00 /opt/ssh/sbin/sshd
....

Then
bash-3.2# kill -HUP 20369
to restart sshd

I ssh to the hpux computer but still get the same error.
0
TsanChung
1/6/2009 2:57:09 PM
TsanChung wrote:

> Error: Can't open display:
> Error: Couldn't find per display information

What does "echo $DISPLAY" return? Maybe the startup files on your HP-UX
box are changing the DISPLAY variable that is automatically set by sshd.

Lothar
-- 
Lothar Paltins                                     lptmp23@freenet.de
0
Lothar
1/6/2009 5:17:23 PM
On Jan 6, 12:17=A0pm, Lothar Paltins <lptm...@freenet.de> wrote:
> TsanChung wrote:
> > Error: Can't open display:
> > Error: Couldn't find per display information
>
> What does "echo $DISPLAY" return? Maybe the startup files on your HP-UX
> box are changing the DISPLAY variable that is automatically set by sshd.
>
> Lothar
> --
> Lothar Paltins =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 lptm...@freenet.de

# echo $DISPLAY
sh: DISPLAY: Parameter not set.
# export DISPLAY=3Dlocalhost:10.0
# xclock
X connection to localhost:10.0 broken (explicit kill or server
shutdown).
0
TsanChung
1/8/2009 10:11:13 PM
On Jan 6, 12:17=A0pm, Lothar Paltins <lptm...@freenet.de> wrote:
> TsanChung wrote:
> > Error: Can't open display:
> > Error: Couldn't find per display information
>
> What does "echo $DISPLAY" return? Maybe the startup files on your HP-UX
> box are changing the DISPLAY variable that is automatically set by sshd.
>
> Lothar
> --
> Lothar Paltins =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 lptm...@freenet.de

# echo $DISPLAY
sh: DISPLAY: Parameter not set.
# export DISPLAY=3Dlocalhost:10.0
# xclock
X connection to localhost:10.0 broken (explicit kill or server
shutdown).
0
TsanChung
1/8/2009 10:11:32 PM
TsanChung schreef:
> On Jan 6, 12:17 pm, Lothar Paltins <lptm...@freenet.de> wrote:
>> TsanChung wrote:
>>> Error: Can't open display:
>>> Error: Couldn't find per display information
>> What does "echo $DISPLAY" return? Maybe the startup files on your HP-UX
>> box are changing the DISPLAY variable that is automatically set by sshd.
>>
>> Lothar
>> --
>> Lothar Paltins                                     lptm...@freenet.de
> 
> # echo $DISPLAY
> sh: DISPLAY: Parameter not set.
> # export DISPLAY=localhost:10.0
> # xclock
> X connection to localhost:10.0 broken (explicit kill or server
> shutdown).
Tsan Chung,


Does your sshd show:
	X11Forwarding yes
or
	X11Forwarding no

If should show:
	X11Forwarding yes


Kind regards,


Jan Gerrit Kootstra
0
Jan
1/9/2009 6:49:24 AM
On Jan 9, 1:49=A0am, Jan Gerrit Kootstra <jan.ger...@kootstra.org.uk>
wrote:
> TsanChung schreef:
>
> > On Jan 6, 12:17 pm, Lothar Paltins <lptm...@freenet.de> wrote:
> >> TsanChung wrote:
> >>> Error: Can't open display:
> >>> Error: Couldn't find per display information
> >> What does "echo $DISPLAY" return? Maybe the startup files on your HP-U=
X
> >> box are changing the DISPLAY variable that is automatically set by ssh=
d.
>
> >> Lothar
> >> --
> >> Lothar Paltins =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 lptm...@freenet.de
>
> > # echo $DISPLAY
> > sh: DISPLAY: Parameter not set.
> > # export DISPLAY=3Dlocalhost:10.0
> > # xclock
> > X connection to localhost:10.0 broken (explicit kill or server
> > shutdown).
>
> Tsan Chung,
>
> Does your sshd show:
> =A0 =A0 =A0 =A0 X11Forwarding yes
> or
> =A0 =A0 =A0 =A0 X11Forwarding no
>
> If should show:
> =A0 =A0 =A0 =A0 X11Forwarding yes
>
> Kind regards,
>
> Jan Gerrit Kootstra

X11Forwarding yes
-1
TsanChung
1/12/2009 3:36:16 PM
Reply: