cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: Solution

Source: http://blog.csdn.net/wangxw8746/article/details/9382155

Cause of the problem: Probably the /var/log permissions are not set correctly. First execute mkpasswd and mkGroup to regenerate the permission information, then delete the SSHD service and reconfigure
Solutions:
$ mkpasswd -l > /etc/passwd
$ mkgroup -l > /etc/group
$ cygrunsrv -R sshd
$ ssh-host-config -y
$ cygrunsrv -S sshd

Read More: