public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* No xauth program
@ 2010-09-01 19:33 Scott T. Marshall
  2010-09-02 15:11 ` Jon TURNEY
  0 siblings, 1 reply; 5+ messages in thread
From: Scott T. Marshall @ 2010-09-01 19:33 UTC (permalink / raw)
  To: cygwin-xfree

Hi All,
I am struggling to get my ssh server to forward x windows. I have 
followed the cygwin documentation several times and cannot get my 
windows 7 (x64) machine to forward any x windows over ssh. This is 
particularly frustrating because I set this all up with no problem on my 
laptop which is also running windows 7 (x64). Here is my short 
description and info. Please let me know if I need to provide any extra 
info. I've done extensive web searches and searched the cygwin FAQ's and 
mailing lists, but can't seem to find a similar problem.

I have added "ForwardX11 yes" to /etc/ssh_config
I have added "X11Forwarding yes" to /etc/sshd_config
I have the XWin server running and am using xterm with the following 
command (on one line of course)
C:\cygwin\bin\run.exe -p /usr/X11R6/bin xterm -display 127.0.0.1:0.0 -ls 
-g 115x35 +tb -fn 8x16 -sl 1000 -sb -rightbar -ms red -fg yellow -bg black

So, my xterm pops up just like normal and I can successfully ssh to 
localhost, but when I try to open something graphical (e.g xeyes or 
nedit) I get
Error: Cannot open display

when I connect using

ssh -Yv localhost

  the last few lines of output are:

debug1: Entering interactive session.
debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding.
debug1: Requesting X11 forwarding with authentication spoofing.
debug1: Remote: No xauth program; cannot forward with spoofing.
Last login: Wed Sep  1 15:03:40 2010 from ::1

I don't understand the No xauth program part. I have xauth in /bin
which xauth
returns
/usr/bin/xauth
and when I check the permissions on xauth, I see that they are 755 and I 
am the owner.

I even tried the suggestion that someone made on the listserv to add a 
line to ~/.ssh/config
XauthLocation=/usr/bin/xauth
and that didn't work, so I tried
XauthLocation=/bin/xauth
and that didn't work either.

Does anyone have any ideas what is going on here? Any help would be very 
much appreciated.
Cheers,
-Scott

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: No xauth program
  2010-09-01 19:33 No xauth program Scott T. Marshall
@ 2010-09-02 15:11 ` Jon TURNEY
  2010-09-02 18:06   ` Scott T. Marshall
  0 siblings, 1 reply; 5+ messages in thread
From: Jon TURNEY @ 2010-09-02 15:11 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: marshallst

On 01/09/2010 20:29, Scott T. Marshall wrote:
> when I connect using
>
> ssh -Yv localhost
>
> the last few lines of output are:
>
> debug1: Entering interactive session.
> debug1: No xauth program.
> Warning: No xauth data; using fake authentication data for X11 forwarding.
> debug1: Requesting X11 forwarding with authentication spoofing.
> debug1: Remote: No xauth program; cannot forward with spoofing.
> Last login: Wed Sep 1 15:03:40 2010 from ::1
>
> I don't understand the No xauth program part. I have xauth in /bin
> which xauth
> returns
> /usr/bin/xauth
> and when I check the permissions on xauth, I see that they are 755 and I am
> the owner.

You might like to try if xauth can actually run successfully?

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: No xauth program
  2010-09-02 15:11 ` Jon TURNEY
@ 2010-09-02 18:06   ` Scott T. Marshall
  2010-09-02 22:48     ` Jon TURNEY
  0 siblings, 1 reply; 5+ messages in thread
From: Scott T. Marshall @ 2010-09-02 18:06 UTC (permalink / raw)
  To: cygwin-xfree

Thanks for the suggestion Jon. I don't know exactly what I should ask 
xauth to do or what syntax is requires (the man page was not completely 
clear to me), but what I can say is that if I try to execute xauth in an 
xterm, it gives no errors.
I can also say that when I ssh to other linux machines, I can open X 
applications, but my cygwin/windows 7 x64 box will not forward x windows 
when someone log onto it.
-Scott

On 9/2/2010 11:11 AM, Jon TURNEY wrote:
> On 01/09/2010 20:29, Scott T. Marshall wrote:
>> when I connect using
>>
>> ssh -Yv localhost
>>
>> the last few lines of output are:
>>
>> debug1: Entering interactive session.
>> debug1: No xauth program.
>> Warning: No xauth data; using fake authentication data for X11
>> forwarding.
>> debug1: Requesting X11 forwarding with authentication spoofing.
>> debug1: Remote: No xauth program; cannot forward with spoofing.
>> Last login: Wed Sep 1 15:03:40 2010 from ::1
>>
>> I don't understand the No xauth program part. I have xauth in /bin
>> which xauth
>> returns
>> /usr/bin/xauth
>> and when I check the permissions on xauth, I see that they are 755 and
>> I am
>> the owner.
>
> You might like to try if xauth can actually run successfully?
>

-- 
<><><><><><><><><><><><><><><>
Scott T. Marshall
Department Of Geology
Appalachian State University
572 Rivers St.
Boone, NC 28608

http://www.appstate.edu/~marshallst/
ftp://pm.appstate.edu/pub/prog/marshallst/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: No xauth program
  2010-09-02 18:06   ` Scott T. Marshall
@ 2010-09-02 22:48     ` Jon TURNEY
  2010-09-03 16:50       ` Scott T. Marshall
  0 siblings, 1 reply; 5+ messages in thread
From: Jon TURNEY @ 2010-09-02 22:48 UTC (permalink / raw)
  To: cygwin-xfree; +Cc: marshallst

> On 9/2/2010 11:11 AM, Jon TURNEY wrote:
>> On 01/09/2010 20:29, Scott T. Marshall wrote:
>>> when I connect using
>>>
>>> ssh -Yv localhost
>>>
>>> the last few lines of output are:
>>>
>>> debug1: Entering interactive session.
>>> debug1: No xauth program.
>>> Warning: No xauth data; using fake authentication data for X11
>>> forwarding.
>>> debug1: Requesting X11 forwarding with authentication spoofing.
>>> debug1: Remote: No xauth program; cannot forward with spoofing.
>>> Last login: Wed Sep 1 15:03:40 2010 from ::1
>>>
>>> I don't understand the No xauth program part. I have xauth in /bin
>>> which xauth
>>> returns
>>> /usr/bin/xauth
>>> and when I check the permissions on xauth, I see that they are 755 and
>>> I am
>>> the owner.
>>
>> You might like to try if xauth can actually run successfully?
>>
On 02/09/2010 18:56, Scott T. Marshall wrote:
> Thanks for the suggestion Jon. I don't know exactly what I should ask xauth to
> do or what syntax is requires (the man page was not completely clear to me),
> but what I can say is that if I try to execute xauth in an xterm, it gives no
> errors.
> I can also say that when I ssh to other linux machines, I can open X
> applications, but my cygwin/windows 7 x64 box will not forward x windows when
> someone log onto it.

Hmm... it looks like the latest openssh package has the wrong default path to 
xauth for some reason.

As a workaround, you might try adding XAuthLocation=/usr/bin/xauth to 
/etc/sshd_config and restarting sshd.

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: No xauth program
  2010-09-02 22:48     ` Jon TURNEY
@ 2010-09-03 16:50       ` Scott T. Marshall
  0 siblings, 0 replies; 5+ messages in thread
From: Scott T. Marshall @ 2010-09-03 16:50 UTC (permalink / raw)
  To: cygwin-xfree

Brilliant!!! That did the trick.
Thanks so much. This was really driving me crazy.
Cheers,
-Scott

On 9/2/2010 6:48 PM, Jon TURNEY wrote:
>> On 9/2/2010 11:11 AM, Jon TURNEY wrote:
>>> On 01/09/2010 20:29, Scott T. Marshall wrote:
>>>> when I connect using
>>>>
>>>> ssh -Yv localhost
>>>>
>>>> the last few lines of output are:
>>>>
>>>> debug1: Entering interactive session.
>>>> debug1: No xauth program.
>>>> Warning: No xauth data; using fake authentication data for X11
>>>> forwarding.
>>>> debug1: Requesting X11 forwarding with authentication spoofing.
>>>> debug1: Remote: No xauth program; cannot forward with spoofing.
>>>> Last login: Wed Sep 1 15:03:40 2010 from ::1
>>>>
>>>> I don't understand the No xauth program part. I have xauth in /bin
>>>> which xauth
>>>> returns
>>>> /usr/bin/xauth
>>>> and when I check the permissions on xauth, I see that they are 755 and
>>>> I am
>>>> the owner.
>>>
>>> You might like to try if xauth can actually run successfully?
>>>
> On 02/09/2010 18:56, Scott T. Marshall wrote:
>> Thanks for the suggestion Jon. I don't know exactly what I should ask
>> xauth to
>> do or what syntax is requires (the man page was not completely clear
>> to me),
>> but what I can say is that if I try to execute xauth in an xterm, it
>> gives no
>> errors.
>> I can also say that when I ssh to other linux machines, I can open X
>> applications, but my cygwin/windows 7 x64 box will not forward x
>> windows when
>> someone log onto it.
>
> Hmm... it looks like the latest openssh package has the wrong default
> path to xauth for some reason.
>
> As a workaround, you might try adding XAuthLocation=/usr/bin/xauth to
> /etc/sshd_config and restarting sshd.
>

-- 
<><><><><><><><><><><><><><><>
Scott T. Marshall
Department Of Geology
Appalachian State University
572 Rivers St.
Boone, NC 28608

http://www.appstate.edu/~marshallst/
ftp://pm.appstate.edu/pub/prog/marshallst/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://x.cygwin.com/docs/
FAQ:                   http://x.cygwin.com/docs/faq/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-03 16:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-01 19:33 No xauth program Scott T. Marshall
2010-09-02 15:11 ` Jon TURNEY
2010-09-02 18:06   ` Scott T. Marshall
2010-09-02 22:48     ` Jon TURNEY
2010-09-03 16:50       ` Scott T. Marshall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).