Re: Where is this "xhost" command?
Re: Where is this "xhost" command?
- Subject: Re: Where is this "xhost" command?
- From: Rich Cook <email@hidden>
- Date: Wed, 20 Oct 2004 14:53:35 -0700
Did you look in your .cshrc file to see if DISPLAY is being messed with
there?
On Oct 20, 2004, at 2:47 PM, Surya wrote:
Hi Tim,
Thanks for your detailed response ! I do think now its the
remote shell that is messing up DISPLAY. Here is the tunneling part in
ssh2_config file on the remote shell (Solaris).
## 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:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden