From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 82557 invoked by alias); 7 May 2017 00:26:04 -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 82467 invoked by uid 89); 7 May 2017 00:26:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=H*r:Unknown, Services, services X-HELO: blaine.gmane.org Received: from Unknown (HELO blaine.gmane.org) (195.159.176.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 07 May 2017 00:26:02 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1d7A1J-0001Wv-QR for cygwin@cygwin.com; Sun, 07 May 2017 02:25:53 +0200 To: cygwin@cygwin.com From: Charles Russell Subject: Re: Installing sshd with option --type manual Date: Sun, 07 May 2017 03:27:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 In-Reply-To: X-IsSubscribed: yes X-SW-Source: 2017-05/txt/msg00084.txt.bz2 Message-ID: <20170507032700.KKyEYSu3imAYEj3z2-LZG820hvknoIpW8pCDc37JfDA@z> 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)". I reran ssh-host-config and it restored the status quo ante, including pubkeys and all configuration. However, even though sshd is working fine under Cygwin, it does not appear in Windows' list of services, so I cannot change the startup option there. > > In theory, that was all you changed with your cygrunsrv command. Looking at the cygrunsrv command in ssh-host-config, installation of sshd requires some additional configuration options that I don't understand. Thanks for your response. -- 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