Search
 
 

Display results as :
 


Rechercher Advanced Search

Top posting users this month

GeoMap

Cannot start sshd under cygwin "cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062" (SOLVED)

View previous topic View next topic Go down

Cannot start sshd under cygwin "cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062" (SOLVED)

Post  halala on Mon Jul 27, 2015 10:26 am

System Win8.1 64bit
SSH version : OpenSSH_6.9p1, OpenSSL 1.0.2c 12 Jun 2015

1. remove sshd services by:
sc delete sshd

2. reconfigure  ssh
ssh-host-config
3. Try to start sshd using "cygrunsrv.exe -S sshd", if the  problem still exist, then check the /var/log/sshd.log for details. For me, it firstly report the right of the following files cannot be 640, so I change it to 600
/etc/ssh_host_dsa_key  /etc/ssh_host_ecdsa_key  /etc/ssh_host_ed25519_key  /etc/ssh_host_key  /etc/ssh_host_rsa_key
Then it turn to the error, since the directory is /var/empty is owned by cyg_server, so I remove it and change the mode to 700


/var/empty must be owned by root and not group or world-writable.

And the problem is solved. But I still cannot start the sshd with cyg_server or sshd account, they cannot login.
avatar
halala

帖子数 : 99
金币(Coin) : 2218
注册日期 : 2012-08-17

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum