Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where is this "xhost" command?



Thanks for mentioning the -v flag. That shows me this on my iMac in a terminal window.



email@hidden's password:
debug1: Authentication succeeded (password).
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: channel 0: request pty-req
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: channel 0: request x11-req
debug1: channel 0: request shell
debug1: channel 0: open confirm rwindow 0 rmax 32768


After I see this I execute the X11 program that I find in /applications/utilities. It takes over ther whole screen in grey and opens a small xterm.
There I execute "X :0 -query MYAIXHOST". At that point the window dissappears altogether but returns a minute later, all grey, no desktop, just a grey screen.
What am I doing wrong?





Hugh McIntyre wrote:

|> Thanks for your detailed response ! I do think now its the remote |> shell that is messing up DISPLAY.

I guess I deleted some of the earlier emails in this thread, but which version of Solaris are you running and, if it's Solaris 9, are you using the bundled SSH that comes with Solaris 9?

If you're using the bundled SSH with Solaris 9 (or 10), the *server* config file lives in /etc/ssh/sshd_config, not the other paths you quoted. Just to make sure it's clear, this file lives on the Solaris side of things.

You can verify which version is being run by using ssh from the Mac to the Solaris box and then typing "pgrep -lf sshd". If it lists /usr/lib/ssh/sshd then you are using the Sun-supplied SSH in which case you need the path I mentioned above.

|> Here is the tunneling part in |> ssh2_config file on the remote shell (Solaris).

This looks like *client* configuration options in which case this file would live on the Mac. At first glance the options look OK, *except* that "TrustX11Applications" does not appear in any of the documentation or public sources. So you may want to remove this.

One thing you can do to debug this is to type the following on the Mac:

	ssh -X -v solarishost

You should see a lot of debug output, but near the end after you enter your password it should say something like:

	debug1: Requesting X11 forwarding with authentication spoofing.

If you don't see anything saying "Requesting X11" then the problem is on the client side. If you do then it's on the server side...

And incidentally it looks like the debug output does not say whether the request is granted or not which is a little unhelpful.

Hugh.


|> ## Tunneling
|> :
|> ClearAllForwardings no
|> GatewayPorts no
|> ForwardAgent yes
|> ForwardX11 yes
|> TrustX11Applications no
|> |> Do you think any of this could be part of the problem?
|> |> Ashish
|> |> |> On Oct 20, 2004, at 5:13 PM, Tim Cutts wrote:
|> |> >
|> > 1) Is your DISPLAY variable set before you ssh to the remote host? |> > What does "echo $DISPLAY" say?
|> >
|> > 2) If your remote host is foo.bar.net, type:
|> >
|> > ssh -X -v foo.bar.net
|> >
|> > This will produce lots of messages about what it's trying to do as it |> > sets up the ssh connection. What does it say? You should see, |> > amongst all the rest, lines like:
|> >
|> > Warning: No xauth data; using fake authentication data for X11 |> > forwarding.
|> >
|> > You might not see this one - it depends on how your X11.app |> > preferences are set up. (Incidentally, I have mine set as shown in |> > the attached .png file. I don't authenticate connections because it's |> > a laptop which changes IP address frequently, but since it doesn't |> > accept external connections, I'm not too worried about this. SSH |> > tunnelled connections appear to the X server to have come from your |> > own machine, so you don't need to accept external connections)
|> >
|> > debug1: Requesting X11 forwarding with authentication spoofing.
|> > debug1: channel 2: request x11-req
|> >
|> > This shows that the X11 connection has been requested (but not whether |> > it has been set up). A bit later you should see something like:
|> >
|> > debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max |> > 16384
|> >
|> > which is the X11 tunnel being created.
|> >
|> > 3) What does DISPLAY now say on the far end? Should say something |> > like:
|> >
|> > localhost:10.0
|> >
|> > If it says something else (or at least not "localhost:nn.0", where nn |> > is some number, then it's possible that your shell setup file on the |> > remote host is doing something to your DISPLAY variable and messing it |> > up.
|> >
|> > Tim
|> >
|> > -- |> > Dr Tim Cutts
|> > Informatics Systems Group, Wellcome Trust Sanger Institute
|> > GPG: 1024D/E3134233 FE3D 6C73 BBD6 726A A3F5 860B 3CDD 3F56 E313 4233
|> >
|> > <x11.png>
|> |> _______________________________________________
|> Do not post admin requests to the list. They will be ignored.
|> X11-users mailing list (email@hidden)
|> Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden
|> |> This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden






_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/x11-users/email@hidden

This email sent to email@hidden
References: 
 >Re: Where is this "xhost" command? (From: Hugh McIntyre <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.