Cygwin Quick Install

Install Cygwin
Open an cmd terminal as administrator, then:

cd ..
mkdir cygwin64

Open a web browser to cygwin.com and download setup-x86_64.exe to the C:\cygwin64 directory.

Back in the cmd terminal, copy this:

setup-x86_64.exe -P alternatives,astyle,bind-utils,binutils,chere,cmake,cygutils-extra,dos2unix,fetchmail,file,findutils,gcc-g++,getmail,hostname,httpd,httpd-mod_php7,ImageMagick,inetutils,inetutils-server,ipcalc,libapr1-devel,libaprutil1-devel,lynx,make,mutt,mysql,mysql-server,nc,ncftp,net-snmp-utils,openssh,perl,php,php-pdo-mysql,php-pdo-sqlite,php-sqlite3,procmail,procps,procps-ng,pwgen,python,python3,rsync,run,screen,sed,socat,source-highlight,sqlite3,ssmtp,syslog-ng,tar,units,unzip,usbutils,util-linux,vim,wget,which,whois,xz,zip

and press enter.

Change the Cygwin home directory to your Windows home directory
Once the install completes open a Cygwin terminal and do the following:
cp /etc/nsswitch.conf /etc/nsswitch.conf.ORIG

Edit /etc/nsswitch.conf (for exampe using the vi command-line editor) and change the following line:
# db_home: /home/%U
to this:
db_home: windows cygwin desc

Setup up OpenSSH server
In a Cygwin terminal do the following:
pwgen -an 20

This gives you a list of passwords to use for the Cygwin sshd account.

Open another Cygwin terminal as Administrator (by right-clicking and selecting “Run as Administrator”) and do the following. Replace “password” below with one of the long passwords generated in the previous step. Make sure to put quotes around it.
ssh-host-config -c "ntsec" -u "cygwin_sshd" -w "password"

Answer the following prompts as indicated:
Should StrictModes be used? (yes/no) -> no
new local account 'sshd'? (yes/no) -> yes
Do you want to install sshd as a service?
(Say "no" if it is already installed as a service) (yes/no) -> yes
Enter the value of CYGWIN for the daemon: [ntsec] -> press enter to confirm
Do you want to use a different name? (yes/no) -> no
Create new privileged user account 'CIRCLE\cygwin_sshd' (Cygwin name: 'cygwin_sshd')? (yes/no) -> yes

Now start the ssh daemon:
cygrunsrv -S sshd

See my other guide Set up Apache, PHP, and MySQL (MariaDB) in Windows under Cygwin for setting up more services.