This is the mail archive of the
mailing list for the Cygwin project.
Re: Cygwin sshd key auth doesn't work (seteuid 500: Permission denied) [SOLVED]
- From: Tomàs Núñez <tomas at criptos dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 19 Nov 2008 11:24:05 +0100
- Subject: Re: Cygwin sshd key auth doesn't work (seteuid 500: Permission denied) [SOLVED]
- References: <4923DCFA.firstname.lastname@example.org>
I've found this doc
and followed the part of "privilege separation". After that, everything
worked fine with key auth.
En/na Tomàs Núñez ha escrit:
sshd: PID 8272: fatal: seteuid 500: Permission denied.
Did you configure your SSH installation with ssh-host-config? How
about your user with ssh-user-config?
I did indeed.
When I run ssh daemon as a user, in order to debug, I get that:
user@server ~/$ /usr/sbin/sshd.exe -d
Ugh! This suggests that you have not read OpenSSH readme in
/usr/share/doc/Cygwin. You can't do this without screwing up all
the permissions on various directories and files that SSH checks
the permissions of.
Sorry, I've read again those docs ( /usr/share/doc/cygwin-doc-1.4 and
/usr/share/doc/openssh) and I've found nothing about not debugging
Anyway, I have the same issue on more machines, so if I screwed that
one, I still need to configure the others...
Sure. See the problem reporting guidelines below. You've told us
what you're having problems with and it's obvious that you misunderstand
what's necessary to get pubkey authentication to switch users but what's
not clear is how you've set this up, what you're working with, and what
your intentions are.
I want to use key-auth to run bash scripts remotely. Although it does
not matter anyway, as I just need to use key-auth...
I've installed cygwin with openssh (all default) on the windows server
and then I ran ssh-host-config. Then I copied the content of my
id_rsa.pub file to this server, to the file ~/.ssh/authorized_keys,
making sure they have no righs for group and other. Let's say, the usual
way of configuring key-auth for me, as I did a bunch of times in my unix
machines. But, this time is not a unix machine, but a windows 2003 with
cygwin installed. And I'm getting some errors when I use key-auth, but
not when I use password-auth.
I'd recommend that you review the docs and email
archives to come up to speed. Then, if you're still having problems,
contact the list again with a follow-up problem report.
I thought that cygwin's openssh pretty much like unix openssh. Anyway, I
reviewed docs before posting the first time, and found nothing solving
this issue. Maybe I didn't look at the right place...
Can you give me a hint about this issue or directions to a doc where
this things are discussed? Thank you very much.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html