delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/05/21:37:20

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3AA44C9F.F68FCA67@mindspring.com>
Date: Mon, 05 Mar 2001 21:34:07 -0500
From: Brian Beuning <bbeuning AT mindspring DOT com>
X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U)
X-Accept-Language: en,pdf
MIME-Version: 1.0
To: Corinna Vinschen <cygwin AT cygwin DOT com>
Subject: Re: debugging sshd as service
References: <3AA39B73 DOT FEBCB202 AT mindspring DOT com> <20010305152228 DOT G1398 AT cygbert DOT vinschen DOT de>

I am (trying) to use srvany.  I did
    instsrv sshd e:\bin\srvany.exe

Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd
are these settings
    AppDirectory REG_SZ e:\cygwin\tmp
    Application REG_SZ e:\cygwin\usr\sbin\sshd.exe
    AppParameters REG_SZ (blank)
    Description REG_SZ secure shell
    DisplayName REG_SZ sshd
    ErrorControl REG_DWORD 0x01
    ImagePath REG_EXPAND_SZ e:\bin\srvany.exe
    ObjectName REG_SZ .\bbeuning (login name)
    Start REG_DWORD 0x03
    Type REG_DWORD 0x10

Sorry I didn't mention this the first time.

AHAH!  Rereading the directions, I was supposed to make a Parameters
key.  Now sshd as a service starts and remote login works!  Yeah!

Thanks,
Brian Beuning


Corinna Vinschen wrote:

> On Mon, Mar 05, 2001 at 08:58:11AM -0500, Brian Beuning wrote:
> > I am trying to run sshd as a service.  It is not working.
> > All the cygwin tools I have tried are working.  When
> > I run sshd from a command prompt, it works fine.
> > Starting sshd from the command line, I was able to
> > connect with ssh both locally and remotely.
> >
> > If I use 'net start sshd', it says
> >     "The sshd service could not be started"
> >     "The service did not report an error"
> >     "More help is available by typing NET HELPMSG 3534"
> >
> > Using the 'services' control panel, it says:
> >     "Could not start the sshd service on Local Computer."
> >     "The service did not return an error."
> >     "This could be an internal Windows error or an internal service
> > error."
>
> Sounds as if you tried to setup sshd as service without
> using SRVANY. That will not work.
>
> Corinna
>
> --
> Corinna Vinschen                  Please, send mails regarding Cygwin to
> Cygwin Developer                                mailto:cygwin AT cygwin DOT com
> Red Hat, Inc.
>
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019