From: Charles Russell <worwor@bellsouth.net>
To: cygwin cygwin <cygwin@cygwin.com>
Subject: Re: Installing sshd with option --type manual
Date: Sun, 07 May 2017 00:18:00 -0000 [thread overview]
Message-ID: <c5997743-f93c-d999-b358-c058669ab6b2@bellsouth.net> (raw)
In-Reply-To: <oeg32r$d3j$1@blaine.gmane.org>
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
next prev parent reply other threads:[~2017-05-07 0:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-29 2:35 Charles Russell
2017-05-04 20:31 ` Fran Litterio
2017-05-07 0:18 ` Charles Russell [this message]
2017-05-07 0:25 ` Charles Russell
2017-05-07 3:27 ` Charles Russell
2017-05-10 5:31 ` Charles Russell
2017-05-10 18:01 ` Brian Inglis
2017-05-06 17:28 ` Charles Russell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c5997743-f93c-d999-b358-c058669ab6b2@bellsouth.net \
--to=worwor@bellsouth.net \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).