Net Start SSHD HELPMSG 3534

I am trying to install Git in a windows window, and so far everything is working, except for this:

net start sshd gets NETHELPSMG 3534 error

When i type

cygrunsrv --start sshd I get QueryServiceStatus: Win32 error 1062

Any ideas how to fix this?

+4
source share
1 answer

You can find here the steps taken to solve this problem in cygwin:

  • Take a look at /var/log/sshd.log:
    /var/empty must be owned by root, not a group, or writable in the world.

  • Adjust the mode of /var/empty and try running sshd :

 $ chmod 700 /var/empty 
  • Change owner / var / empty:
 20080217-144416 Administrator <at> a64x23800p /var $ chown root empty/ chown: invalid user: `root' 
  • root is not a valid username. Make an educated guess and try again:
 20080217-151048 Administrator <at> a64x23800p /var $ chown SYSTEM empty 20080217-151056 Administrator <at> a64x23800p /var $ ll -d empty/ drwx------+ 2 SYSTEM None 0 Feb 17 14:30 empty// 

Then:

 20080217-151108 Administrator <at> a64x23800p /var $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service was started successfully. 

Regarding error 1062, it reports that the Windows service was not started.

 $ cygrunsrv --start sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. .. $ net start sshd The CYGWIN sshd service is starting. The CYGWIN sshd service could not be started. # only if the previous section was not solved 

Note: keep in mind that:

  • some antivirus software may interfere with this service.
    See this thread .
  • An older version of cygwin1.dll may also interfere with the process.
    See this thread .
+7
source

All Articles