Been messing around with Cygwin for a while now to run bash (in all of its emulated glory) on Detonator-3. In addition to the uber-alles g33kiness of it, I’ve been excited b/c one of the advantages is that I can supposedly run sshd for secure remote access. One of the problems (however) is that the on-board instructions/setup docs are (intentionally?) vague about how to get this config’d in an XP Pro environment and the highest-ranking Googled pages about this are in direct conflict with each other.
The CYGWIN environment variable seems to be the big one here. In different sources I’ve seen it’s defined in different ways and in different places. CYGWIN = “tty ntsec” vs. CYGWIN = “ntsec tty” vs. …
ssh-host-config -y run … doesn’t prompt for CYGWIN definition … not even after a complete re-install of Cygwin. Ugh. The error?
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started.
Google is pretty silent on this issue except for a few message board posts that seem to originate w/ Cygwin newbies asking the same question that I’m asking, only to be interrogated by Cygwin powerusers that fail to provide any insightful commentary or suggestion.
The logs are pretty useless too:
Could not load host ket: /etc/ssh_host_key^M
Could not load host ket: /etc/ssh_host_rsa_key^M
Could not load host ket: /etc/ssh_host_dsa_key^M
Disabling protocol version 1. Could not load host key^M
Disabling protocol version 2. Could not load host key^M
sshd: no hostkeys available -- exiting.^M
And all this time I thought the generating hostkey line during the setup phase meant exactly that. What REALLY gets me though … is that if I cd to /usr/sbin and run sshd from there, I can ssh into the box. What the funk? Still digging.