delorie.com/archives/browse.cgi | search |
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:from:subject:references:to:reply-to:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=Do5hHb5golxOL+UD | |
smwr7WfqeyUFUQMIhdDZaMqbvpznh7OmGo8rJiS45leHgFkyIrI94g/KUcjEval4 | |
tzmeDLbzngFR3GF+o0Z0oPSTMcM02UCDsEFJok9uBTT/tyeO+xUBSLy0QdT49iEy | |
lgwFUWf+2GRaKu5sC61IejoyTSM= | |
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:from:subject:references:to:reply-to:message-id | |
:date:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=6cFXZR9uDulj48fItAyx+M | |
A896k=; b=nTcghXbu1G5fsgdC9kA+jxU+uGEfGgx2hTMEfYY187smJzEb+5IrFR | |
/uWCvv4HI1i70yL/YbZwrK/Dk5sA+nNnOaBxG7GKsz42oTtdv5uXvjtxE8gkdx9a | |
LZ0GRrS7qC013tseOQzaEeLMT/SCfDC7scY45wjD74CZZNU9TEv4o= | |
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=1.0 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*r:ip*192.168.1.100, Hx-spam-relays-external:!192.168.1.100!, H*RU:!192.168.1.100!, H*r:sk:smtp-ou |
X-HELO: | smtp-out-so.shaw.ca |
X-Authority-Analysis: | v=2.2 cv=UpATD64B c=1 sm=1 tr=0 a=WqCeCkldcEjBO3QZneQsCg==:117 a=WqCeCkldcEjBO3QZneQsCg==:17 a=IkcTkHD0fZMA:10 a=v2bxMrvrkyOJ8p7MdJ4A:9 a=QEXdDO2ut3YA:10 |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Subject: | Re: Installing sshd with option --type manual |
References: | <odvo8o$3ib$1 AT blaine DOT gmane DOT org> <oeg32r$d3j$1 AT blaine DOT gmane DOT org> <c5997743-f93c-d999-b358-c058669ab6b2 AT bellsouth DOT net> <a5ee8f26-49a3-708d-5695-23beaba53e8d AT bellsouth DOT net> <oeu729$dfh$1 AT blaine DOT gmane DOT org> |
To: | cygwin AT cygwin DOT com |
Reply-To: | Brian DOT Inglis AT SystematicSw DOT ab DOT ca |
Message-ID: | <03c9c136-c08c-e96d-3f73-6c279e6d43b0@SystematicSw.ab.ca> |
Date: | Wed, 10 May 2017 11:28:36 -0600 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <oeu729$dfh$1@blaine.gmane.org> |
X-CMAE-Envelope: | MS4wfNfWfH5GqabHLbR+NEa23o1dFDAb9s4qC7hvw0MrjY794Y70xY0xS14HyyaDRnFBZWL74QkL9TUtvWoTnWUmyf3RobltZVSGv79jFlhU0rZdzRSMB3xu POFfhk/CWnOAd8vxipSEsw6aTCbGC9m6gGif/yRK+9rNO8XMZoXKUA7vYSZfvZf/Lsgp/28ZGUrhdA== |
X-IsSubscribed: | yes |
On 2017-05-09 23:05, Charles Russell wrote: >> On 5/4/2017 3:31 PM, Fran Litterio wrote: >>> 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)". > Yes! I was looking in the alphabetized list of services for sshd, not > for CYGWIN sshd. ...or from an elevated admin shell where you installed the Cygwin service with cygrunsrv -I or ran the /bin/...-config script e.g.: $ sc config sshd start= delayed-auto depend= cygserver/tcpip no space before = (part of option), space between = and value required, services it should start after and depends on separated by forward slashes. >From any shell, you can list installed Cygwin services using $ cygrunsrv -L with -V also listing all parameters and their values. >From any shell, you can also list and modify parameters easily using e.g. $ regtool list -p /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd Parameters\ Type Start ErrorControl ImagePath DisplayName DependOnService ObjectName $ regtool set -d /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/DelayedAutostart 1 $ regtool list -p /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd Parameters\ Type Start ErrorControl ImagePath DisplayName DependOnService ObjectName DelayedAutostart $ regtool get /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/DelayedAutostart 1 $ regtool list -p /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters AppPath AppArgs $ regtool set -d /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/Preshutdown 1 $ regtool list -p /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters AppPath AppArgs Preshutdown $ regtool get /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/Preshutdown 1 with the usual caveats regarding registry key names, changes, and modifications. Parameters and other cygrunsrv changes will not be picked up until the service is stopped and restarted from cygrunsrv in an elevated admin shell. This approach has the advantages that cygrunsrv does not support service or parameter changes or modifications, cygrunsrv -I and sc config require an elevated admin shell, sc config does not support cygrunsrv and other services' Parameters and other features, and regedit requires formatted file input or a GUI. -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |