This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: How to add users to sshd?
- From: René Berber <r dot berber at computer dot org>
- To: cygwin at cygwin dot com
- Date: Wed, 12 Apr 2006 01:46:21 -0500
- Subject: Re: How to add users to sshd?
- Openpgp: url=hkp://random.sks.keyserver.penguin.de
- References: <20060302100755.GG3184@calimero.vinschen.de> <27335.1273769096$1144817108@news.gmane.org>
siegfried wrote:
> I can use ssh with the administrator account but I'm having trouble using
> ssh with my other user accounts. I'm reading
> /usr/share/doc/Cygwin/openssh.README and it says:
>
> "You can create the private and public keys for a user now by running
>
> /usr/bin/ssh-user-config
>
> under the users account."
>
> I tried that and it says:
>
> bash-3.00$ /usr/bin/ssh-user-config
> There is no home directory set for you in /etc/passwd.
> Setting $HOME is not sufficient!
>
> Hmmm.... I'm confused. Can someone tell me how to use ssh with something
> other than the Administrator account?
A Windows user is not the "user account" the documentation refers to above.
After creating the Windows user you (an administrator) have to add the user to
the /etc/passwd file, usually running "mkpasswd -l -u UserName >> /etc/passwd",
but you may have to edit the file to modify group, shell or home directory.
The home directory is created the first time the user logs in. I think the
ssh-user-config is meant to be used by the user itself, that will at least take
care of creating the home directory.
--
René Berber
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/