X11 cannot open display saga

János janos.lobb at yale.edu
Thu May 24 12:55:32 PDT 2007


Additional info:

On the remote AIX machine in ssh_config I set:
ForwardX11 yes

So both on the local machine and the remote machine now

in ssh_config:	ForwardX11 yes

in sshd_config:	X11Forwarding yes

I still unable to display xclock from the remote machine.

On the remote machine there is no DISPLAY env variable.  If I connect  
to another AIX machine and launch xclock there it displays  
magnificently and I also see in the env there:

DISPLAY=localhost:10.0

so for some reason the elm machine does not take the forward.

Any good hint ?

Thanks ahead,

János
P.S.  Interestingly PC users using Reflection X have no problem  
running x applications from the elm machine.



On May 23, 2007, at 3:05 PM, János wrote:

> Hi,
>
> On my local OSX 10.4.9 machine  - 10.84.2.42 - ssh_config and  
> sshd_config contain the X11Forwarding yes settings.
>
> The remote machine - 10.48.106.84 -  sshd_config also contains  
> X11Forwarding yes.
>
> on my local machine I do:
>
> bml0042:/Volumes/Home/janos janos$ xhost +10.48.106.84
> 10.48.106.84 being added to access control list
>
> then I do:
>
> bml0042:/Volumes/Home/janos janos$ ssh -X root at 10.48.106.84
> root at 10.48.106.84's password:
> ********************************************************************** 
> *********
> *                                                                      
>         *
> *                                                                      
>         *
> *  Welcome to AIX Version  
> 5.3!                                                *
> *                                                                      
>         *
> *                                                                      
>         *
> *  Please see the README file in /usr/lpp/bos for information  
> pertinent to    *
> *  this release of the AIX Operating  
> System.                                  *
> *                                                                      
>         *
> *                                                                      
>         *
> ********************************************************************** 
> *********
> {[root]elm:/:852}#
>
> According to the FAQ the -X or -Y should forward the DISPLAY over  
> to the elm machine.  However when I try xclock:
>
> {[root]elm:/:853}# xclock
> Error: Can't open display:
> {[root]elm:/:854}#
>
> What else should be done ?
>
> Here are the ssh related env variables from elm after the  
> connection is established:
>
> SSH_CONNECTION=10.84.2.42 49582 10.48.106.84 22
> SSH_CLIENT=10.84.2.42 49582 22
> TERM=xterm-color
>
>
> on my own machine:
> TERM=xterm-color
> SHELL=/bin/bash
> SHLVL=2
> DISPLAY=:0.0
>
>
> What else must be done for xclock to work from the remote elm  
> machine ?
>
> Thanks ahead,
>
> János
> P.S.  on my on local machine xclock  
> works._______________________________________________
> MacOSX-admin mailing list
> MacOSX-admin at omnigroup.com
> http://www.omnigroup.com/mailman/listinfo/macosx-admin



More information about the MacOSX-admin mailing list