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=WU0lmUG9oqFPhGmn KtsjGBHxm0USbCh56TFXNE0DgEgfAiPhaYOQp2q23orxNVQURanYnIeaTHSAWixC qUXQr4uIaa4w5F9aQ+ueRVvTkHymlz6oA4E1K5psdq7PBPzrmQV+CNFTPGtnK1Sb QRtx1PXP3rf0BcxFh5eB3FUKZdw= 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=gW3K8K9IaRZf5+nt4mqJ4K NtLy8=; b=SgdcF3mNiWhvO6wfJp691bmL1iE8C68dMlOJXR3lJpUyJq371PRbqd me2Am3qrIr/Qdj3wz6wlx/ui54250UNcJUoKqlENRv4GrQPEoVwg5z1ZDoK/VjQS CSGrQxZ8s89FoLS5+33eb5HkoLA/khfCWpPzpJBvCBUVMiLZ/ODO0= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=HX-Yahoo-Newman-Property:ymail-3, firewall, reenter, re-enter X-HELO: nm9-vm5.access.bullet.mail.bf1.yahoo.com X-Yahoo-SMTP: WSY3Sn2swBC0nRtl50J1OQ4lIaY1YAno2L6bZGkWYngj Subject: Re: Installing sshd with option --type manual To: cygwin AT cygwin DOT com References: From: Charles Russell Message-ID: Date: Sat, 6 May 2017 12:28:31 -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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 4/28/2017 10: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" > > 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. > > Is there an easy fixup for my broken sshd, or should I rerun > ssh-host-config? > > With no response to this message, I reran ssh-host-config, which fixed the broken sshd and very kindly did not even require me to re-enter the pubkeys. It would be nice if it also offered an option for manual start. Inspecting the ssh-host-config script, I see that installing the server requires some configuration options that I don't understand. I'm now using the firewall to disable the server by default, though "net start sshd" and "net stop sshd" would have been more convenient. -- 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