This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sshd wouldn't start as a Windows service


At 03:56 PM 7/25/2005, you wrote:
>Hallöchen!
>
>I can start sshd directly with
>
>    /usr/sbin/sshd -D
>
>which works fine.  However, I want it to be a real service, so I
>called
>
>cygrunsrv -S sshd
>
>This results in a Windows timeout error #1053:
>
>$ cygrunsrv.exe -S sshd
>cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1053:
>The service didn't reply in time to the start or control request.
>
>What can I do about it?
>
>
>This is what I had done:
>
>I wiped out my old Cygwin installation in Win2k and installed the
>latest version I could find.  Included was OpenSSH_4.1p1.
>
>>From my old installation, there still is the global environment
>variable CYGWIN="ntsec tty".  I called ssh-host-config, but copied
>my old config files over the new ones.  

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

There's your problem.  You really can't do this unless you change the 
permissions on these files to be owned by SYSTEM.


>I use the defaults but
>disable root login and password authentication.  All ssh-related
>files in /etc/ have my (admin) account as owner, and their

  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Ditto.

>priviledges are set correctly.  Priviledge separation is off.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Not from what you've said so far.  You also need to be concerned about
/var/log/sshd.log.  Permissions there need to be the same as above.
You may find it easier to just let the config scripts do their work and
then edit your changes back in, especially where you suggest that the 
changes are not extensive.




--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]