delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/05/06/20:19:06

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=cOZtlDcfViS6MFVv
tVVyXx4otklOhDjyyEqlx9dhEjrTABA94ipwpHyytbLR8yR7VS9aZ46+sMRbYoVf
MZewYrc01pXdxzAVoVeJogyXYORLWrQSJXArMQiGcWZc2ZceHyt7V2A92fy9b8Lk
U6PeMIg4dKvr2lw6rbdvWaQxSHg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=23xISgABVwdKAJExNxLHFY
IKbM4=; b=fC/jWPCyMF6THz2q8kImWAejeAMdptaviMhtyfnHTFUL7LM07FcKCP
yAxiZ/GuXb0QLwL+RYDPYXR1sDKTNBsozJr5qJ4+wDdQAuPhhcUL2lxtsJ3uvOqx
eJFUgmD+BEevwIm/dmSpuixBSZncQIsprkqpZTSIxzn8aQoJSy6UE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Services, administrator, services
X-HELO: nm9-vm3.access.bullet.mail.gq1.yahoo.com
X-Yahoo-SMTP: WSY3Sn2swBC0nRtl50J1OQ4lIaY1YAno2L6bZGkWYngj
Subject: Re: Installing sshd with option --type manual
To: cygwin cygwin <cygwin AT cygwin DOT com>
References: <odvo8o$3ib$1 AT blaine DOT gmane DOT org> <oeg32r$d3j$1 AT blaine DOT gmane DOT org>
From: Charles Russell <worwor AT bellsouth DOT net>
Message-ID: <c5997743-f93c-d999-b358-c058669ab6b2@bellsouth.net>
Date: Sat, 6 May 2017 19:18:33 -0500
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <oeg32r$d3j$1@blaine.gmane.org>

On 5/4/2017 3:31 PM, Fran Litterio wrote:
> On 4/28/2017 11:48 AM, Charles Russell wrote:
>> Starting from a default installation of sshd that was working
>> properly, I tried uninstalling sshd with cygrunsrv and reinstalling
>> with --type manual.
>>
>> (cygrunsrv --install sshd --path /usr/sbin/sshd.exe --type manual)
>>
>> After rebooting I cannot start sshd with cygrunsrv.  Instead, I get
>> message "Error starting a service: Query service status: Win32 Error
>> 1062"
>
> You can try opening the Services Control Panel app (run "start
> services.msc" in a Command Prompt) and changing the startup type of
> service "Cygwin sshd" to "Automatic (Delayed Start)".
>
> In theory, that was all you changed with your cygrunsrv command.
>
>> Is it practical to use "--type manual" with sshd, or are its security
>> restrictions too tight for this kind of installation? My intent was to
>> have sshd off by default, but available when I need it, with current
>> status easily seen with ps.
>
> I routinely stop sshd with "net stop sshd" and re-start it later with
> "net start sshd".  If it's configure for manual startup, these commands
> should work just as well.
>
>> [...] or should I rerun
>> ssh-host-config?
>
> In cases where I have re-run ssh-host-config, I have first deleted the
> service with "sc delete sshd" as Administrator out of a desire not to
> confuse the config script with an existing service. But that may not be
> necessary.
> --
> Fran
>
>


--
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