Cygwin - Installation

Written: 12/22/11

Last Updated: 06/16/13

This tutorial will walk you through the installation of Cygwin, with the addition of the packages required for setting up a ssh server. The official installation documentation can be found here. This is the first part of the Cygwin SSH server series. Throughout these guides you will notice blurred regions in the pictures. Those regions were blurred for security purposes.

Go to and download setup.exe or click here for a direct link.

Place the executable in an easily accessible location, as you will most likely need to run it again in the future. I prefer to store it with the Cygwin install (just make sure to not give non-admin users access to it), as it is used to add, remove, and update features.

Run the setup. Click “Next”.


Click “Next” again.


Choose an install location for Cygwin. You may wish to install it on its own dedicated drive. Regardless of the location, I recommend installing it in the root directory. If you decided to install it somewhere else, make sure the directory name does not contain spaces, i.e. “Program Files” will not work. Click “Next” when you’re ready.


Choose a default download directory. As stated earlier, I like to keep my download directory with the install directory; however, any location will work. For convenience, it would be a good idea to choose the same directory as the location of the setup file (default). Click “Next”.


Click “Next” again.


Choose the closest mirror to you and then click “Next”. When the warning message pops up, just click “OK”.



You should now be presented with the following screen:


It is very important that you install the following two packages in addition the default installation: “cygrunsrv,” located in All->Admin->cygrunsrv and “openssh,” located in All->Net->openssh. You should also install a text editor. A very simple, user-friendly one is “nano”. It can be found under All->Editors->nano. To select an item, simply click on the highlighted region shown below.




If you are feeling really adventurous and would like to see everything that Cygwin has to offer, you could alternatively install everything. That is done by clicking on “All” until “Default” changes to “Install”.


When you are satisfied with your choices click “Next”. Keep in mind that you can always add more packages later.


Click “Next” again.


Depending on which packages you selected and your internet speed, this could take a very long time. Wait patiently until it finishes, then click on “Finish”.



Congratulations! You have now just successfully installed Cygwin. If you are ready to setup the ssh/file server continue on to my next tutorial, SSHD Configuration.

Discussion (2)

There are 2 responses to “Cygwin – Installation”.

  1. scott responded:

    · Reply

    Thank you very much for all the work you put into this. It worked well for me!!

  2. Mike Potter responded:

    · Reply

    Very helpful. Much better than the Cygwin official documentation online which is practically non-existent.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.