The key point is that we're not going to run sshd as a service via cygrunsrv or anything, but that we're going to start it directly as the desktop user.
- install cygwin (the x86 version currently has more packages, such as zsh. oh-my-zsh works by the way)
- install ssh and if you like some helper programs (git, mc, wget, curl, nano, vim, rsync, zsh, ...)
- start cygwin, I don't believe it is necessary to run as administrator with my method, but I guess it can't hurt
- execute the same script as a normal sshd setup:
$ ssh-host-config
- this will generate a default /etc/sshd_config. Do NOT continue with the script, just abort (ctrl-c)
- edit /etc/sshd_config, look for privilege separation and set the value from "sandbox" to "no" (without the quotes)
- run the sshd as
$ /usr/sbin/sshd
- open another cygwin terminal and try to login and run notepad:
$ ssh localhost
$ notepad
- profit!
- going further, you can create a .vbs file in your startup folder that looks a bit like this:
Set WshShell = CreateObject("WScript.Shell")
cmds=WshShell.RUN("cmd /C cd C:\cygwin\bin & bash --login -c '/usr/sbin/sshd'", 0, True)
Set WshShell = Nothing
Have you gotten this to work on Windows 7? If this does work, could you make a more detailed tutorial?