Developing and testing remotely via RDP is challenging, especially through half the globe. Still deployment can easily be automated without fancy commercial programs. Here is how I installed and configured OpenSSH on a Windows station.

  • Install MSYS2: go to msys2.org, download installer and run it
  • Launch mingw64 shell
  • Download the recipe
  • Execute it with debugging output: bash -x msys2-sshd-setup.sh
  • When prompted to install dependency, comply
  • If error happens, fix the script (for instance, I had to comment out passwd -e because of initially missing file /etc/passwd)
  • Ensure Windows firewall allows incoming connections for sshd
  • ???
  • PROFIT

The rest is the matter of technique: SFTP, rsync whatsoever.