From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 69302 invoked by alias); 7 May 2017 00:18:48 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 69283 invoked by uid 89); 7 May 2017 00:18:48 -0000 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 Received: from nm9-vm3.access.bullet.mail.gq1.yahoo.com (HELO nm9-vm3.access.bullet.mail.gq1.yahoo.com) (216.39.63.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 07 May 2017 00:18:46 +0000 Received: from [216.39.60.171] by nm9.access.bullet.mail.gq1.yahoo.com with NNFMP; 07 May 2017 00:18:47 -0000 Received: from [98.138.226.240] by tm7.access.bullet.mail.gq1.yahoo.com with NNFMP; 07 May 2017 00:18:47 -0000 Received: from [127.0.0.1] by smtp111.sbc.mail.ne1.yahoo.com with NNFMP; 07 May 2017 00:18:47 -0000 X-Yahoo-SMTP: WSY3Sn2swBC0nRtl50J1OQ4lIaY1YAno2L6bZGkWYngj Subject: Re: Installing sshd with option --type manual To: cygwin cygwin References: From: Charles Russell Message-ID: Date: Sun, 07 May 2017 00:18:00 -0000 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2017-05/txt/msg00082.txt.bz2 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