Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A service is stopping immediately after being started. The service is cygwin sshd and runs under the SYSTEM account, with cyglsa-config for cygwin authentication. How do I diagnose this?

share|improve this question
up vote 2 down vote accepted

Check the event viewer - error messages for the service should be logged there.

share|improve this answer

By default, application events should be written to the Windows Application Event Log. This includes cygwin's implementation of sshd on Windows.

share|improve this answer

As has already been answered, the Event Viewer is your friend here. As for the problem. It's not unusual for ported applications such as this to leave behind a pid file (*.pid) if the process terminates uncleanly. Upon a service restart the application will detect the pid file, assume that another instance is already running and exit accordingly. Find and manually remove the pid file and retry the service start.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.