delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/12/02:46:54

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: How to add users to sshd?
Date: Wed, 12 Apr 2006 01:46:21 -0500
Lines: 39
Message-ID: <e1i7o1$72i$1@sea.gmane.org>
References: <20060302100755 DOT GG3184 AT calimero DOT vinschen DOT de> <27335.1273769096$1144817108 AT news DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5 (Windows/20051201)
In-Reply-To: <27335.1273769096$1144817108@news.gmane.org>
OpenPGP: url=hkp://random.sks.keyserver.penguin.de
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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:
>=20
> "You can create the private and public keys for a user now by running
>=20
>   /usr/bin/ssh-user-config
>=20
> under the users account."
>=20
> I tried that and it says:
>=20
> bash-3.00$ /usr/bin/ssh-user-config
> There is no home directory set for you in /etc/passwd.
> Setting $HOME is not sufficient!
>=20
> 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/pass=
wd",
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.
--=20
Ren=E9 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019