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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; q=dns; s=default; b=s4bwPViuCY2vy7FjjP/SGOLOD9c/yC lNDcta2bz2jfkqjXLYqmC2z6+qLCGnfrl4KmsnPcokbktQ8xFcC9jZV2shWPlEZH mEPPw7iXhXUGwye1yz1+VgzKO+3LS/wK1qaL+ZTcg0hRwcMf4OJbN9Z1u14tJfIx RJuaXchFBCzLg= 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:to:from:subject:date:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=default; bh=RiARX0vEOVOD777hAri7xPuMulc=; b=GhPb oBfUStCKjMrdOVfTX5jzKTi6GZknr1w6Q8dzYHo5cQvJN2BCBos3oghQul5m7fKt w4LKgq2W+8FiN+/ay6kieV/O6T7opTgWfpu199GdG4707t4VKEb5f7JF0eJmHYgt dF0rAuHFHNR5/VN31FN0iotbz+zN/yR4l67wjOs= 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=1.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=charles, Charles, Panel, Administrator X-HELO: blaine.gmane.org To: cygwin AT cygwin DOT com From: Fran Litterio Subject: Re: Installing sshd with option --type manual Date: Thu, 4 May 2017 16:31:29 -0400 Lines: 34 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 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 In-Reply-To: X-IsSubscribed: yes 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