delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/24/20:03:23

X-Spam-Check-By: sourceware.org
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=
Message-ID: <797650580702241703x7c9b0af6hc3a2e0dacab11be1@mail.gmail.com>
Date: Sat, 24 Feb 2007 20:03:00 -0500
From: "Web Developer" <armyofda12mnkeys AT gmail DOT com>
To: cygwin AT cygwin DOT com, gregg DOT drwho8 AT gmail DOT com
Subject: Re: Setting up a ssh service
In-Reply-To: <20070224194529.GA4757@trixie.casa.cgf.cx>
MIME-Version: 1.0
References: <18d205ed0702241143s2a27a847mbfedd57b8eaf7f0c AT mail DOT gmail DOT com> <20070224194529 DOT GA4757 AT trixie DOT casa DOT cgf DOT cx>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

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/

- Raw text -


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