To fix this, make the user starting the sshd service the owner of /var/empty.% cygrunsrv.exe --stop sshd% /usr/sbin/sshd.exe -D
Could not load host key: /etc/ssh_host_ecdsa_key
/var/empty must be owned by root and not group or world-writable.
Now, start sshd again.% ls -ld /var/empty
drwxr-xr-x+ 1 cyg_server root 0 May 7 2010 empty
% chown <user> /var/empty
When you are done debugging and are ready to run sshd again as a service, change the owner of /var/empty to cyg_server.% /usr/sbin/sshd.exe -D
Note: you must have administrator privileges to run cygrunsrv.exe.% chown cyg_server /var/empty% cygrunsrv.exe --start sshd