This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Sshd and key based authentication

On 11/18/2013 2:58 AM, Andrea Venturoli wrote:

I'm trying to set up sshd on a Windows 2003 domain controller.
Everything works with password authentication; however I need this for a
script, so, in order to get non-interactive login, I must use keys.
Tried as hard as I could, but I could not achieve this: I'm always asked for
a password.


Is this supposed to work? Several posts say so, but no one mentions a domain
controller... Does it bring in anything special?

If you want/have to use domain user logins, then you need to create a
domain equivalent of 'cyg_server'.  You can use the scripts that
'ssh-host-config' uses as a guide to do this but the actual process
must be done by hand and you need access and permission on your domain
controller to set this up.

'ssh-host-config' will not handle this case for you.

Are the above users correct? Any problem with it?

For local users, no, no problem.

What are correct ownership and permissions of /home, /home/myuser,
/home/myuser/.ssh and /home/myuser/.ssh/authorized_keys?

'ssh-host-config' will set these up for you.  I suggest you use it.

According to some how-tos, ssh-host-confing should have prompted with
"CYGWIN=" and I should have replied "tty ntsec", but this did not happen.
Other how-tos suggest putting this variable in the environment.
Is this information current or obsolete? I tried and it didn't seem to


Yes, this information is obsolete.  This is the main reason we
recommend not using various How-To guides that you'll find littered
around the Internet.

Any other hint?

If a domain service account isn't an option, look at the other
options listed in the User's Guide:


Method 2 or 3 might be sufficient for your need.



A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]