Download the cygwin-sshd-config.sh script to the following location on the Windows VM: C:\Cygwin\home\root\cygwin-sshd-config.sh
Make sure the script is set to executable:
No Format
chmod +x /home/root/cygwin-sshd-config.sh
Launch C:\Cygwin\Cygwin.bat
Run the script and specify the root account password as an argument, enclose the password in ticks in case special characters are used in the password:
No Format
/home/root/cygwin-sshd-config.sh '<PASSWORD>'
Note: the sshd service probably will not start until the next step is completed
Open Start --> Run --> services.msc
Double-click the Cygwin sshd service
Open the Log On tab
Enter the root account password twice and click OK, you should see a message stating root has been granted the Log On As A Service Right