Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

X11 tunnelling

Status
Not open for further replies.

dial8d

Technical User
Feb 6, 2006
80
GB
System p520 running AIX 5.2 TL10 SP1.

Openssh

openssh.base.client 4.3.0.5200 COMMITTED Open Secure Shell Commands
openssh.base.server 4.3.0.5200 COMMITTED Open Secure Shell Server
openssh.license 4.3.0.5200 COMMITTED Open Secure Shell License
openssh.man.en_US 4.3.0.5200 COMMITTED Open Secure Shell
openssh.base.client 4.3.0.5200 COMMITTED Open Secure Shell Commands
openssh.base.server 4.3.0.5200 COMMITTED Open Secure Shell Server


Has the following X11 filesets installed.

X11.Dt.ToolTalk 5.2.0.105 COMMITTED AIX CDE ToolTalk Support
X11.Dt.adt 5.2.0.0 COMMITTED AIX CDE Application
X11.Dt.bitmaps 5.2.0.0 COMMITTED AIX CDE Bitmaps
X11.Dt.compat 5.2.0.0 COMMITTED AIX CDE Compatibility
X11.Dt.helpinfo 5.2.0.0 COMMITTED AIX CDE Help Files and Volumes
X11.Dt.helpmin 5.2.0.0 COMMITTED AIX CDE Minimum Help Files
X11.Dt.helprun 5.2.0.30 COMMITTED AIX CDE Runtime Help
X11.Dt.lib 5.2.0.105 COMMITTED AIX CDE Runtime Libraries
X11.Dt.rte 5.2.0.105 COMMITTED AIX Common Desktop Environment
X11.Dt.xdt2cde 5.2.0.0 COMMITTED AIX CDE Migration Tool
X11.adt.bitmaps 5.2.0.0 COMMITTED AIXwindows Application
X11.adt.ext 5.2.0.105 COMMITTED AIXwindows Application
X11.adt.imake 5.2.0.75 COMMITTED AIXwindows Application
X11.adt.include 5.2.0.10 COMMITTED AIXwindows Application
X11.adt.lib 5.2.0.40 COMMITTED AIXwindows Application
X11.adt.motif 5.2.0.0 COMMITTED AIXwindows Application
X11.apps.aixterm 5.2.0.95 COMMITTED AIXwindows aixterm Application
X11.apps.clients 5.2.0.105 COMMITTED AIXwindows Client Applications
X11.apps.config 5.2.0.0 COMMITTED AIXwindows Configuration
X11.apps.custom 5.2.0.0 COMMITTED AIXwindows Customizing Tool
X11.apps.msmit 5.2.0.105 COMMITTED AIXwindows msmit Application
X11.apps.rte 5.2.0.105 COMMITTED AIXwindows Runtime
X11.apps.util 5.2.0.0 COMMITTED AIXwindows Utility
X11.apps.xdm 5.2.0.40 COMMITTED AIXwindows xdm Application
X11.apps.xterm 5.2.0.0 COMMITTED AIXwindows xterm Application
X11.base.common 5.2.0.0 COMMITTED AIXwindows Runtime Common
X11.base.lib 5.2.0.105 COMMITTED AIXwindows Runtime Libraries
X11.base.rte 5.2.0.105 COMMITTED AIXwindows Runtime Environment
X11.base.smt 5.2.0.50 COMMITTED AIXwindows Runtime Shared
X11.base.xpconfig 5.2.0.0 COMMITTED Xprint Configuration Files
X11.compat.adt.Motif12 5.2.0.10 COMMITTED AIXwindows Motif 1.2
X11.compat.lib.Motif10 5.2.0.0 COMMITTED AIXwindows Motif 1.0 Libraries
X11.compat.lib.Motif114 5.2.0.0 COMMITTED AIXwindows Motif 1.1.4
X11.compat.lib.X11R3 5.2.0.0 COMMITTED AIXwindows X11R3 Libraries
X11.compat.lib.X11R4 5.2.0.0 COMMITTED AIXwindows X11R4 Libraries
X11.compat.lib.X11R5 5.2.0.95 COMMITTED AIXwindows X11R5 Compatibility
X11.fnt.defaultFonts 5.2.0.0 COMMITTED AIXwindows Default Fonts
X11.fnt.iso1 5.2.0.0 COMMITTED AIXwindows Latin 1 Fonts
X11.loc.en_US.base.rte 5.2.0.0 COMMITTED AIXwindows Locale
X11.man.en_US.Dt.adt 5.2.0.0 COMMITTED AIX CDE Toolkit Man Pages -
X11.man.en_US.Dt.rte 5.2.0.0 COMMITTED AIX CDE Man Pages - U.S.
X11.motif.lib 5.2.0.95 COMMITTED AIXwindows Motif Libraries
X11.motif.mwm 5.2.0.40 COMMITTED AIXwindows Motif Window
X11.msg.en_US.Dt.helpmin 5.2.0.0 COMMITTED AIX CDE Minimum Help Files -
X11.msg.en_US.Dt.rte 5.2.0.0 COMMITTED AIX CDE Messages - U.S.
X11.msg.en_US.adt.ext 5.2.0.0 COMMITTED AIXwindows X Extensions
X11.msg.en_US.adt.imake 5.2.0.0 COMMITTED AIXwindows imake Messages -
X11.msg.en_US.apps.aixterm
X11.msg.en_US.apps.clients
X11.msg.en_US.apps.config 5.2.0.0 COMMITTED AIXwindows Config Application
X11.msg.en_US.apps.custom 5.2.0.0 COMMITTED AIXwindows Customizing Tool
X11.msg.en_US.apps.rte 5.2.0.0 COMMITTED AIXwindows Runtime Config
X11.msg.en_US.apps.xdm 5.2.0.0 COMMITTED AIXwindows xdm Messages - U.S.
X11.msg.en_US.base.common 5.2.0.0 COMMITTED AIXwindows Common Messages -
X11.msg.en_US.base.rte 5.2.0.0 COMMITTED AIXwindows Runtime Env.
X11.msg.en_US.motif.lib 5.2.0.0 COMMITTED AIXwindows Motif Libraries
X11.msg.en_US.motif.mwm 5.2.0.0 COMMITTED AIXwindows Motif Window Mgr
X11.msg.en_US.vsm.rte 5.2.0.0 COMMITTED Visual System Mgmt. Helps &
X11.vsm.lib 5.2.0.40 COMMITTED Visual System Managment
bos.rte.X11 5.2.0.0 COMMITTED AIXwindows Device Support
X11.Dt.ToolTalk 5.2.0.105 COMMITTED AIX CDE ToolTalk Support
X11.Dt.bitmaps 5.2.0.0 COMMITTED AIX CDE Bitmaps
X11.Dt.helpinfo 5.2.0.0 COMMITTED AIX CDE Help Files and Volumes
X11.Dt.helpmin 5.2.0.0 COMMITTED AIX CDE Minimum Help Files
X11.Dt.rte 5.2.0.105 COMMITTED AIX Common Desktop Environment
X11.base.rte 5.2.0.105 COMMITTED AIXwindows Runtime Environment
X11.base.smt 5.2.0.50 COMMITTED AIXwindows Runtime Shared


I set sshd_config as follows ;

X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes

I set my putty client to "Enable X11 Forwarding", and display location as "localhost:10.0". Authentication protocol set to MIT-Magic-Cookie-1.

I login to the server, but no Xauthority file is created, nor is the DISPLAY variable set.

X apps then fail to start, as their unable to open the display.

I do the exact same steps above on various AIX 5.3 servers, and it works fine.

Any idea's why this isnt working for AIX 5.2 ?

 
yes, sshd stopped and started, no joy ! :(
 
Check for /etc/ssh/sshrc or $HOME/.ssh/rc on the server.

When either of these exists, xauth is not called automatically. If one exists, check the sshd man page to see how to make sure they set up X11 forwarding for you.

- Rod


IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+

A Simple Code for Posting on the Web
 
Ok, i found a resolution.

There is an optional config parameter in sshd_config called XAuthLocation.

I set this to the location of xauth /usr/lpp/X11/bin/xauth, restarted sshd.

Now when logging in, the Xauthority file is created, DISPLAY set to localhost:10.0 and i can run X apps ok.

Strange that i dont need to set this on AIX 5.3 though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top