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\CurrentControlSet\Services\OpenSSHD
4. From the Edit menu, click Add Key. Type the following and click OK:
Key Name: Parameters
Class :
5. Select the Parameters key. From the Edit menu, click Add Value. Type the following and click OK:
Value Name: Application
Data Type : REG_SZ
String : C:\cygwin\usr\sbin\sshd -D
6. Reboot and done

Comments

Popular posts from this blog

Using PlayStation 1 Densha de Go controller on emulators

Using PS1/PC Densha de Go! controller SLPH-00051/TCPP-20001/DGOC-44U on PS4/Switch Densha de Go!!

Play octoshape stream on windows with VLC player