Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using Cygwin environment on Windows is a very common solution for automation.

I am looking for a script that would automate the cygwin installation and enablement of ssh server.

I could try to write one but one of the problems is that I don't know what I can use to download line for downloading cygwin.

share|improve this question
ftp -s:filename is your friend. – Iain Jul 2 '13 at 9:23

Automating the Cygwin installation is described here. Once you've installed Cygwin, you need to run ssh-host-config to set up the ssh server. I don't know how easy that is to automate, but maybe you could do something with expect, and chain the two scripts together.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.