Posts

Showing posts from November, 2009

Set SSH to run on windows on boot time

To install SSH for windows, this should have given you plenty of instructions to follow. But at some step when you wish to start sshd demon again, it returns the following error: The CYGWIN sshd service could not be started. The service did not report an error. In that case, run the following command in Cygwin shell. > sudo chown system:system /var/empty > chown system:system /etc/ssh_h* This should solve the problem. (Reference: here ) To further set it as a service (i.e. the ssh server is started once you switch on the computer), you can follow the instructions here , in additional to this . In summary, the steps are 1. Download and install the Windows Server 2003 Resource Kit Tools from Microsoft. 2. In cmd , type > "C:\Program Files\Windows Resource Kits\Tools\instsrv.exe" OpenSSHD "C:\Program Files\Windows Resource Kits\Tools\srvany.exe" 3. Run Registry Editor ( Regedt32.exe ) and locate the following subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentContr