What is the correct way to set up sshwindows for SSH key authentication? Does the user need to be created in Windows first or can a login be inserted into passwd without a Windows equivalent?
I've searched on Google and have tried the tutorials and quick start guides. So far, exactly 0 have worked.
None pointed out that to work in Windows 2008 R2, you need to change the properties of cygrunsrv.exe to "Windows XP SP3" compability mode to even get past the service startup "error 1067". Although it is running, no amount of configuration allowed me to log on to the SFTP server, even though I tried (from another machine):
- same user account added using "mkpasswd" + windows password
- same user account added using "mkpasswd" + public ssh key (added to /home/theuser/.ssh)
On Windows 2003 R2 (a different attempt), the service would crash every time it started up.
Some links I went through
sufr to: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
and Download:
psftp.exe (command line tool)
puttygen.exe (GUI for creating ssh private keys)
generate your key and add it to pageant. Now you can use psftp.exe to upload download files. (start it in a windows command line)
Try core ftp server, which allows you to configure sftp without using windows based authentication.