Today, I want to explain that how you can start the sshd service in cygwin. First, You should download the installation file from www.cygwin.com for windows. During the installation, you must expand the Admin folder and select cygrunsrv. Also, you must expand Net and select openssh. After installation, open cygwin shell, and run the following commands:
- ssh-host-config -y --------> This command will create necessary configuration files.
- cygrunsrv -S sshd --------> This command will run the sshd service. This is equal to "service sshd start" command.
Don't forget to configure your firewall in Windows.