X applications fail to run on ssh -X

This is a discussion on X applications fail to run on ssh -X within the aix forums in Operating Systems category; I use ssh -X to login to a aix machine successfully. However X applications fail to run. Please help to solve this problem. local$ uname -a Linux linux1 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686 i686 i386 GNU/Linux local$ ssh -X -o StrictHostKeyChecking=no twong-at-aix1.chrysalis-its.com twong-at-aix1.chrysalis-its.com's password: Last unsuccessful login: Fri Aug 8 10:50:29 CDT 2008 on ssh from 172.20.11.66 Last login: Fri Aug 8 13:56:17 CDT 2008 on /dev/pts/5 from ...

Go Back   Database Forum > Operating Systems > aix

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-13-2008, 06:48 PM
Default X applications fail to run on ssh -X

I use "ssh -X" to login to a aix machine successfully.
However X applications fail to run.
Please help to solve this problem.
local$ uname -a
Linux linux1 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006
i686 i686 i386 GNU/Linux
local$ ssh -X -o StrictHostKeyChecking=no twong-at-aix1.chrysalis-its.com
twong-at-aix1.chrysalis-its.com's password:
Last unsuccessful login: Fri Aug 8 10:50:29 CDT 2008 on ssh from
172.20.11.66
Last login: Fri Aug 8 13:56:17 CDT 2008 on /dev/pts/5 from
172.20.11.66
$ xterm
xterm Xt error: Can't open display:
$ xclock
Error: Can't open display:
$ uname -a
AIX aix1 3 5 00CC111E4C00

Reply With Quote
  #2  
Old 08-13-2008, 08:04 PM
Default Re: X applications fail to run on ssh -X

TsanChung wrote:
> I use "ssh -X" to login to a aix machine successfully.
> However X applications fail to run.
> Please help to solve this problem.
> local$ uname -a
> Linux linux1 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006
> i686 i686 i386 GNU/Linux
> local$ ssh -X -o StrictHostKeyChecking=no twong-at-aix1.chrysalis-its.com
> twong-at-aix1.chrysalis-its.com's password:
> Last unsuccessful login: Fri Aug 8 10:50:29 CDT 2008 on ssh from
> 172.20.11.66
> Last login: Fri Aug 8 13:56:17 CDT 2008 on /dev/pts/5 from
> 172.20.11.66
> $ xterm
> xterm Xt error: Can't open display:
> $ xclock
> Error: Can't open display:
> $ uname -a
> AIX aix1 3 5 00CC111E4C00
>


It looks like you don't have your DISPLAY environment variable set to
point to your X server.

Jim Lahue
Reply With Quote
  #3  
Old 08-14-2008, 03:21 AM
Default Re: X applications fail to run on ssh -X

On 08/14/2008 01:04 AM, Jim Lahue wrote:
> It looks like you don't have your DISPLAY environment variable set to
> point to your X server.
>
> Jim Lahue


Jim, one does not set DISPLAY for SSH X11 forwarding.

Perhaps the OP is missing 'xauth' on his system. I think it's provided
by X11.apps.config.

cheers
Niel
Reply With Quote
  #4  
Old 08-14-2008, 04:25 AM
Default Re: X applications fail to run on ssh -X

On 2008-08-13, TsanChung wrote:
> I use "ssh -X" to login to a aix machine successfully.
> However X applications fail to run.
> Please help to solve this problem.
> local$ uname -a
> Linux linux1 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006
> i686 i686 i386 GNU/Linux
> local$ ssh -X -o StrictHostKeyChecking=no twong-at-aix1.chrysalis-its.com
> twong-at-aix1.chrysalis-its.com's password:
> Last unsuccessful login: Fri Aug 8 10:50:29 CDT 2008 on ssh from
> 172.20.11.66
> Last login: Fri Aug 8 13:56:17 CDT 2008 on /dev/pts/5 from
> 172.20.11.66
> $ xterm
> xterm Xt error: Can't open display:
> $ xclock
> Error: Can't open display:
> $ uname -a
> AIX aix1 3 5 00CC111E4C00


Are you sure X11 forwarding is enabled in the SSHD config?
Check for an entry like:
X11Forwarding yes

Regards,

Frank
Reply With Quote
  #5  
Old 08-14-2008, 09:35 AM
Default Re: X applications fail to run on ssh -X

On Thu, 14 Aug 2008 09:25:33 +0200, Frank Fegert wrote:

> On 2008-08-13, TsanChung wrote:
>> I use "ssh -X" to login to a aix machine successfully. However X
>> applications fail to run.
>> Please help to solve this problem.
>> local$ uname -a
>> Linux linux1 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686
>> i686 i386 GNU/Linux
>> local$ ssh -X -o StrictHostKeyChecking=no twong-at-aix1.chrysalis-its.com
>> twong-at-aix1.chrysalis-its.com's password: Last unsuccessful login: Fri
>> Aug 8 10:50:29 CDT 2008 on ssh from 172.20.11.66
>> Last login: Fri Aug 8 13:56:17 CDT 2008 on /dev/pts/5 from
>> 172.20.11.66
>> $ xterm
>> xterm Xt error: Can't open display:
>> $ xclock
>> Error: Can't open display:
>> $ uname -a
>> AIX aix1 3 5 00CC111E4C00

>
> Are you sure X11 forwarding is enabled in the SSHD config? Check for an
> entry like:
> X11Forwarding yes
>
> Regards,
>
> Frank


Depending on the server TL, there may be a bug in the sshd daemon that
prevents X11 forwarding from working. If X11 forwarding is turned on in
the /etc/ssh/sshd_config file, and xauth is installed, then you may need
to add the following line to the sshd_config file and restart the service
(using 'stopsrc' and 'startsrc'; not 'refresh'):

XAuthLocation /usr/bin/X11/xauth

Reply With Quote
  #6  
Old 08-14-2008, 10:09 AM
Default Re: X applications fail to run on ssh -X

On Aug 14, 2:21*am, Niel Lambrechts wrote:
> On 08/14/2008 01:04 AM, Jim Lahue wrote:
>
> > It looks like you don't have your DISPLAY environment variable set to
> > point to your X server.

>
> > Jim Lahue

>
> Jim, one does not set DISPLAY for SSH X11 forwarding.
>
> Perhaps the OP is missing 'xauth' on his system. I think it's provided
> by X11.apps.config.
>
> cheers
> Niel


# lslpp -l | grep X11.apps.config
X11.apps.config 5.3.0.0 COMMITTED AIXwindows
Configuration
lslpp: 0504-125 Error while processing fileset
c08e25dff488c9a718b73eb37355c503.
lslpp: 0504-307 No match was found for the SWVPD data search.

What should I do?
Reply With Quote
  #7  
Old 08-14-2008, 10:10 AM
Default Re: X applications fail to run on ssh -X

On Aug 14, 3:25*am, Frank Fegert wrote:
> On 2008-08-13, TsanChung wrote:
>
>
>
> > I use "ssh -X" to login to a aix machine successfully.
> > However X applications fail to run.
> > Please help to solve this problem.
> > local$ uname -a
> > Linux linux1 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006
> > i686 i686 i386 GNU/Linux
> > local$ ssh -X -o StrictHostKeyChecking=no tw...@aix1.chrysalis-its.com
> > tw...@aix1.chrysalis-its.com's password:
> > Last unsuccessful login: Fri Aug *8 10:50:29 CDT 2008 on ssh from
> > 172.20.11.66
> > Last login: Fri Aug *8 13:56:17 CDT 2008 on /dev/pts/5 from
> > 172.20.11.66
> > $ xterm
> > xterm Xt error: Can't open display:
> > $ xclock
> > Error: Can't open display:
> > $ uname -a
> > AIX aix1 3 5 00CC111E4C00

>
> Are you sure X11 forwarding is enabled in the SSHD config?
> Check for an entry like:
> * X11Forwarding yes
>
> Regards,
>
> * * * * Frank


# grep X11Forwarding /etc/ssh/sshd_config
#X11Forwarding no
X11Forwarding yes
Reply With Quote
  #8  
Old 08-14-2008, 11:12 AM
Default Re: X applications fail to run on ssh -X

On Aug 14, 8:35*am, "F. Michael Orr" wrote:
> On Thu, 14 Aug 2008 09:25:33 +0200, Frank Fegert wrote:
> > On 2008-08-13, TsanChung wrote:
> >> I use "ssh -X" to login to a aix machine successfully. However X
> >> applications fail to run.
> >> Please help to solve this problem.
> >> local$ uname -a
> >> Linux linux1 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:54:20 EDT 2006 i686
> >> i686 i386 GNU/Linux
> >> local$ ssh -X -o StrictHostKeyChecking=no tw...@aix1.chrysalis-its.com
> >> tw...@aix1.chrysalis-its.com's password: Last unsuccessful login: Fri
> >> Aug *8 10:50:29 CDT 2008 on ssh from 172.20.11.66
> >> Last login: Fri Aug *8 13:56:17 CDT 2008 on /dev/pts/5 from
> >> 172.20.11.66
> >> $ xterm
> >> xterm Xt error: Can't open display:
> >> $ xclock
> >> Error: Can't open display:
> >> $ uname -a
> >> AIX aix1 3 5 00CC111E4C00

>
> > Are you sure X11 forwarding is enabled in the SSHD config? Check for an
> > entry like:
> > * X11Forwarding yes

>
> > Regards,

>
> > * * * * Frank

>
> Depending on the server TL, there may be a bug in the sshd daemon that
> prevents X11 forwarding from working. *If X11 forwarding is turned on in
> the /etc/ssh/sshd_config file, and xauth is installed, then you may need
> to add the following line to the sshd_config file and restart the service
> (using 'stopsrc' and 'startsrc'; not 'refresh'):
>
> XAuthLocation /usr/bin/X11/xauth


I added "XAuthLocation /usr/bin/X11/xauth" to the /etc/ssh/sshd_config
file and xauth is installed.

aix# lssrc -s sshd
0513-085 The sshd Subsystem is not on file.
aix# stopsrc -s sshd
0513-085 The sshd Subsystem is not on file.
aix# startsrc -s sshd
0513-085 The sshd Subsystem is not on file.
aix# ps -ef|grep ssh
root 585820 1 0 07:57:57 - 0:00 /usr/sbin/sshd
root 1495206 585820 0 07:58:20 - 0:00 sshd: root-at-pts/2
aix# kill -HUP 585820 1495206
Connection closed by remote host.
local$ ssh -X aix1
aix# xclock
Error: Can't open display:
aix# ps -ef|grep ssh
root 1486932 1495208 0 08:35:07 - 0:00 sshd: root-at-pts/0
root 1495208 1 0 08:35:01 - 0:00 /usr/sbin/sshd
Reply With Quote
  #9  
Old 08-14-2008, 11:39 AM
Default Re: X applications fail to run on ssh -X

aix ssh daemon:
$ ssh -v
OpenSSH_3.9p1_CASPUR-K5/AFS-2, OpenSSL 0.9.7e 25 Oct 2004

linux ssh client:
# ssh -v
OpenSSH_4.3p2, OpenSSL 0.9.8b 04 May 2006
Reply With Quote
  #10  
Old 08-14-2008, 01:57 PM
Default Re: X applications fail to run on ssh -X

Niel Lambrechts wrote:
> On 08/14/2008 01:04 AM, Jim Lahue wrote:
>
>> It looks like you don't have your DISPLAY environment variable set to
>> point to your X server.
>>
>> Jim Lahue

>
>
> Jim, one does not set DISPLAY for SSH X11 forwarding.
>
> Perhaps the OP is missing 'xauth' on his system. I think it's provided
> by X11.apps.config.
>
> cheers
> Niel


Well, that'll teach me to talk about things that I don't do :-)

So, I assume that the DISPLAY variable is supposed to be set up for him
via SSH.

Jim Lahue
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 08:23 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.