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: How to add users to sshd?


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/


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