Cygwin SSH gives ‘Could not create directory’ error

That is because when you use SSH, the home is set fromĀ /etc/passwd. Read more on that here. The simplest fix is to create the home directory contained in /etc/passwd file, which is usually ‘/home/myname’. Other option would be reset you home as mentioned here