我正在尝试在 Windows 机器上设置 Git,到目前为止一切似乎都在工作......除了这个:
net start sshd
得到错误 NETHELPSMG 3534
当我打字时
cygrunsrv --start sshd
我得到 QueryServiceStatus: Win32 error 1062
有什么办法解决这个问题吗?
最佳答案
您可以 find here在cygwin下解决这个问题所采取的步骤:
Look at /var/log/sshd.log:
/var/empty
must be owned by root and not group or world-writable.Adjust mode of
/var/empty
and attempt to startsshd
:
$ chmod 700 /var/empty
- Change owner of /var/empty:
20080217-144416 Administrator <at> a64x23800p /var
$ chown root empty/
chown: invalid user: `root'
- root is not a valid user name. 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//
然后:
20080217-151108 Administrator <at> a64x23800p /var
$ net start sshd
The CYGWIN sshd service is starting.
The CYGWIN sshd service was started successfully.
关于1062错误,报windows服务还没有启动。
$ 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
注意:请注意:
- 某些防病毒软件可能会干扰该服务。
参见 this thread . - 旧版本的
cygwin1.dll
也可能会干扰该过程。
参见 that thread .
关于git - 网络启动 SSHD HELPMSG 3534,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1475571/