This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Setting up a ssh service
- From: "Web Developer" <armyofda12mnkeys at gmail dot com>
- To: cygwin at cygwin dot com, gregg dot drwho8 at gmail dot com
- Date: Sat, 24 Feb 2007 20:03:00 -0500
- Subject: Re: Setting up a ssh service
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=piIUQqaMbnpQs4LZRWuRTvb3oAmzD6LAM8gX6pBWw31j5+LAyd9uj7pJdLIjB+1wfUIc5piE9KFxrbdOo0BsaauOP6vl7MSM49j+5o1Lv1eW2Uv9VZEu5sdCqwpHjGuVcY40f3LlInHkVbQcdbMQIkRJoqvEXZnEK/tPQfY59/A=
- References: <18d205ed0702241143s2a27a847mbfedd57b8eaf7f0c@mail.gmail.com> <20070224194529.GA4757@trixie.casa.cgf.cx>
I had made these instructions copied off somewhere a while back for
setting up sshd service on windows...
add a new entry to system variables:
New variable name is CYGWIN, variable value is ntsec
Also add to the Path system variable and click the "Edit" edit button
and append to it:
;c:\cygwin\bin
open cygwin...
(make sure openssh is installed, if not get it by running cygwin's setup.exe)
Run:
ssh-host-config (on slower computers, it may take several minutes to generate the dsa keys)
When the script asks you about "privilege separation", answer yes
When the script asks you about "install sshd as a service", answer yes
When the script asks you for "CYGWIN=" your answer is ntsec
start the sshd service
net start sshd
(or
cygrunsrv -S sshd)
harmonize Windows user information with cygwin, otherwise users cannot
log into shh.
mkpasswd creates a password file from Windows' user list...include
Windows security information, but the actual passwords are determined
by Windows, not by the content of /etc/passwd.
mkgroup creates a group file from Windows' user list
mkpasswd --local > /etc/passwd
mkgroup --local > /etc/group
enjoy,
Arian
--
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/