sshd and X

Jean-Claude Gervais
Thu May 26 03:45:00 GMT 2005

OK, the machine hadn't rebooted, that was causing a problem.
After reboot, the login responses have changed:

error in locking authority file /cygdrive/y/jcgervais/.Xauthority

me@pluto ~ $ ssh -Y neptune
me@neptune's password:
Last login: Wed May 25 23:37:00 2005 from pluto
You are successfully logged in to this server!!!
/usr/X11R6/bin/xauth:  error in locking authority
file /cygdrive/y/me/.Xauthority
basename: invalid option -- b
Try `basename --help' for more information.
-bash: [: =: unary operator expected

Running an application gives a different error now also.

me@neptune ~
$ xcalc
X11 connection rejected because of wrong authentication.
X connection to localhost:10.0 broken (explicit kill or server

On Wed, 2005-05-25 at 12:37 -0400, Igor Pechtchanski wrote:
> On Wed, 25 May 2005, Boaz Harrosh wrote:
> > Alexander Gottwald wrote:
> >
> > > Maybe ssh -v -v -v wil give you a clue what is happening.
> >
> > Right!! try running sshd in a consul in the foreground. (Check what switch
> > makes it run in the foreground (-d?))
> Both -D and -d do (Cygwin's ssh-host-config uses the -D option for the
> service).  -d is much more verbose (into the system log, which by default
> is the Windows Event Log), and will only accept one connection.
> > Than see what prints you have.
> > If this works it is not the end. SYSTEM user is different than the
> > foreground user, sshd is very picky about permissions been to low or to
> > high.
> You can run sshd from a SYSTEM-owned shell (Google for "system owned shell
> shortcut").
> 	Igor

More information about the Cygwin-xfree mailing list