delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/26/12:46:35

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 26 Jun 2009 12:46:01 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: net start sshd problem
Message-ID: <20090626164601.GB30612@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <1f04f6fa0906260928jf859bcci64b466d9ac613cda AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <1f04f6fa0906260928jf859bcci64b466d9ac613cda@mail.gmail.com>
User-Agent: Mutt/1.5.19 (2009-01-05)
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

On Fri, Jun 26, 2009 at 09:28:50AM -0700, Gordon Fogus wrote:
>I installed cygwin for the second time.  I installed all the packages
>from ftp%3a%2f%2fmirror.cs.vt.edu%2fpub%2fcygwin%2fcygwin%2f mirror.
>
>My session then ran as follows (after I configured the mkpasswrd thing
>for my domain account):
>----
>gsfogus AT GSFogus ~
>$ ssh-host-config -y
>*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
>*** Info: Creating default /etc/ssh_config file
>*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
>*** Info: Creating default /etc/sshd_config file
>*** Info: Privilege separation is set to yes by default since OpenSSH 3.3.
>*** Info: However, this requires a non-privileged account called 'sshd'.
>*** Info: For more info on privilege separation read /usr/share/doc/openssh/READ
>ME.privsep.
>*** Query: Should privilege separation be used? (yes/no) yes
>*** Info: Updating /etc/sshd_config file
>*** Query: Overwrite existing /etc/inetd.d/sshd-inetd file? (yes/no) yes
>*** Info: Creating default /etc/inetd.d/sshd-inetd file
>*** Info: Updated /etc/inetd.d/sshd-inetd
>
>*** Info: Host configuration finished. Have fun!
>
>gsfogus AT GSFogus ~
>$ ssh localhost
>ssh: connect to host localhost port 22: Connection refused
>
>gsfogus AT GSFogus ~
>$ net start sshd
>System error 2 has occurred.
>
>The system cannot find the file specified.
>
>gsfogus AT GSFogus ~
>$ cygrunsrv -S sshd
>cygrunsrv: Error starting a service: StartService:  Win32 error 2: application
>The system cannot find the file specified.
>
>gsfogus AT GSFogus ~
>$ ssh localhost
>ssh: connect to host localhost port 22: Connection refused
>----
>
>In order to get to this location, I followed these instructions:
>----
>1.	After finishing installing Cygwin, right click ?My Computer?, and
>select ?Properties?, ?Advanced?, ?Environment Variables?. Click on the
>?New? button to add a new entry to ?System variables?. The new entry
>is called ?CYGWIN? and set the value to ?ntsec tty?.
>2.	While in the environment variables dialog, confirm that ?Path? has
>?c:\cygwin\bin? (or wherever you have put Cygwin?s bin/ directory) in
>its definition.
>3.	Run the following command in a Cygwin shell:
>
>>ssh-host-config ?y
>
>If the script asks you about ?privilege separation?, answer ?yes?.
>If the script asks about ?create a local user sshd on this machine?,
>answer ?yes?
>If the script asks you about ?install sshd as a service?, answer ?yes?
>When the script asks you for ?environment variable CYGWIN=?, answer ?ntsec tty?
>You may need to change the following permissions if error messages
>instruct you to do so when using Cygwin install version 2.573.2.3:

I can't comment on why you are having problems but setting the CYGWIN
environment variable to "ntsec tty" makes no sense at all.  If it really
was required the ssh-host-config would set it for you automatically.

cgf

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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