Windows – How to set the HOME path with SSH on Cygwin

cygwin;opensshwindows server 2008

I have a bunch of users that I'd like to set the default HOME directory for so that when they log into SSHD running on Cygwin on Windows Server 2008, they get set at a specific directory (C:\sandboxsites\$USER)

Any idea on how you can do this with Cygwin/SSHD?

I followed these instructions to setup SSHD on Windows–set-up-a-personal-home-ssh-server

Best Answer

Set their home directory in /etc/passwd (see this answer to a somewhat similar question on Stack Overflow).