X applications (xclock, xterm) fail to run on ssh -X - SSH
This is a discussion on X applications (xclock, xterm) fail to run on ssh -X - SSH ; I use "ssh -X" to login to hpux machine successfully.
However X applications fail to run.
Please help to solve this problem.
Thanks.
$ xclock
Error: Can't open display:
$ xterm
xterm Xt error: Can't open display:
$ ssh -v
...
-
X applications (xclock, xterm) fail to run on ssh -X
I use "ssh -X" to login to hpux machine successfully.
However X applications fail to run.
Please help to solve this problem.
Thanks.
$ xclock
Error: Can't open display:
$ xterm
xterm Xt error: Can't open display:
$ ssh -v
OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep
2006
HP-UX Secure Shell-A.04.50.011, HP-UX Secure Shell version
$ uname -a
HP-UX hp1 B.11.31 U ia64
-
Re: X applications (xclock, xterm) fail to run on ssh -X
On Sep 4, 11:22*am, TsanChung wrote:
> I use "ssh -X" to login to hpux machine successfully.
> However X applications fail to run.
> Please help to solve this problem.
> Thanks.
> $ xclock
> Error: Can't open display:
> $ xterm
> xterm Xt error: Can't open display:
> $ ssh -v
> OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep
> 2006
> HP-UX Secure Shell-A.04.50.011, HP-UX Secure Shell version
> $ uname -a
> HP-UX hp1 B.11.31 U ia64
your DISPLAY variable isn't set. Make sure that x forwarding is
enabled for the client and the server.
-
Re: X applications (xclock, xterm) fail to run on ssh -X
On Sep 4, 12:12*pm, OldSchool wrote:
> On Sep 4, 11:22*am, TsanChung wrote:
>
> > I use "ssh -X" to login to hpux machine successfully.
> > However X applications fail to run.
> > Please help to solve this problem.
> > Thanks.
> > $ xclock
> > Error: Can't open display:
> > $ xterm
> > xterm Xt error: Can't open display:
> > $ ssh -v
> > OpenSSH_4.5p1+sftpfilecontrol-v1.1-hpn12v14, OpenSSL 0.9.7l 28 Sep
> > 2006
> > HP-UX Secure Shell-A.04.50.011, HP-UX Secure Shell version
> > $ uname -a
> > HP-UX hp1 B.11.31 U ia64
>
> your DISPLAY variable isn't set. *Make sure that x forwarding is
> enabled for the client and the server.
Using "ssh -X" will set the DISPLAY variable.
# grep X11Forward /opt/ssh/etc/sshd_config
X11Forwarding yes
# X11Forwarding no
# ps -ef|grep ssh
root 11399 1 0 Sep 3 ? 0:00 sshd: root@pts/6
twong 11862 11861 0 Sep 3 ? 0:00 /opt/ssh/libexec/sftp-
server
root 12729 1 0 10:39:02 ? 0:00 sshd: twong [priv]
root 4796 1 0 Sep 3 ? 0:01 sshd: root@pts/1
root 3885 1 0 Sep 3 ? 0:01 sshd: root@pts/0
root 9407 1 0 02:10:58 ? 0:00 sshd: root@pts/9
root 7733 1 0 Sep 3 ? 0:00 sshd: root@pts/2
twong 11861 11858 0 Sep 3 ? 0:04 sshd: twong@notty
twong 9263 9260 0 02:06:04 ? 0:00 sshd: twong@pts/8
root 9086 1 0 02:00:08 ? 0:00 sshd: twong [priv]
root 24817 1 0 17:36:47 ? 0:00 sshd: twong [priv]
twong 19368 19365 0 14:26:28 ? 0:00 sshd: twong@pts/4
root 19365 1 0 14:26:28 ? 0:00 sshd: twong [priv]
root 11858 1 0 Sep 3 ? 0:00 sshd: twong [priv]
root 9260 1 0 02:06:04 ? 0:00 sshd: twong [priv]
twong 24820 24817 0 17:36:47 ? 0:00 sshd: twong@pts/5
twong 9089 9086 0 02:00:08 ? 0:00 sshd: twong@pts/7
root 10023 1 0 02:31:10 ? 0:00 /opt/ssh/sbin/sshd
-
Re: X applications (xclock, xterm) fail to run on ssh -X
On Sep 5, 9:25*am, TsanChung wrote:
> > > $ xclock
> > > Error: Can't open display:
> > > $ xterm
> > > xterm Xt error: Can't open display:
The error messages are clear enough, the DISPLAY isn't set
properly....
-
Re: X applications (xclock, xterm) fail to run on ssh -X
On Sep 5, 11:58*am, OldSchool wrote:
> On Sep 5, 9:25*am, TsanChung wrote:
>
> > > > $ xclock
> > > > Error: Can't open display:
> > > > $ xterm
> > > > xterm Xt error: Can't open display:
>
> The error messages are clear enough, the DISPLAY isn't set
> properly....
I do not understand why DISPLAY isn't set properly (it is empty) by
sshd on hpux when I use "ssh -X".
Do OpenSSH_4.5p1 support the "-X" option?
Is /opt/ssh/etc/sshd_config the config file for sshd on hpux?
The DISPLAY is set properly by sshd on linux when I use "ssh -X".
-
Re: X applications (xclock, xterm) fail to run on ssh -X
TsanChung wrote:
> On Sep 5, 11:58 am, OldSchool wrote:
>> On Sep 5, 9:25 am, TsanChung wrote:
>>
>>>>> $ xclock
>>>>> Error: Can't open display:
>>>>> $ xterm
>>>>> xterm Xt error: Can't open display:
>> The error messages are clear enough, the DISPLAY isn't set
>> properly....
>
> I do not understand why DISPLAY isn't set properly (it is empty) by
> sshd on hpux when I use "ssh -X".
> Do OpenSSH_4.5p1 support the "-X" option?
> Is /opt/ssh/etc/sshd_config the config file for sshd on hpux?
> The DISPLAY is set properly by sshd on linux when I use "ssh -X".
Is xauth in your path on the remote system?
Jeff Long