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.
↧