misheska/basebox-packer — pull request #41 by rasa (2014-01-14 02:58:31+00:00)
Title: Fixes #40 Populate environment variables that Cygwin removes

Moved all bash commands from cygwin.bat to cygwin.sh
Use "ssh-user-config" to create .ssh directory in Cygwin (floppy/cygwin.bat)
Changed 'StrictModes yes' to 'StrictModes no' in etc/sshd_config (cygwin.bat and openssh.bat)
Changed '#PubkeyAuthentication yes' to 'PubkeyAuthentication yes' in etc/sshd_config (cygwin.bat and openssh.bat)
Changed '#PermitUserEnvironment no' to 'PermitUserEnvironment yes' in etc/sshd_config (cygwin.bat and openssh.bat)
Changed '#UseDNS yes' to 'UseDNS no' in etc/sshd_config (cygwin.bat and openssh.bat)
Changed 'Banner /etc/banner.txt' to '#Banner /etc/banner.txt' in etc/sshd_config (openssh.bat only)
Repopulate the following variables that Cygwin removes from the environment:
APPDATA
CommonProgramFiles
LOCALAPPDATA
ProgramData
ProgramFiles
PSModulePath
PUBLIC
SESSIONNAME
TEMP
TMP
USERNAME
CommonProgramFiles(x86) (64 bit only)
CommonProgramW6432 (64 bit only)
ProgramFiles(x86) (64 bit only)
ProgramW6432 (64 bit only)