This walkthrough on getting SVN+SSH up and running on a Windows Box was provided by Thorsten Möller
Thanks!
Hi all,
I just want to provide my solution to the community since I have found out that there might be many people struggling with the same issue.
mkpasswd -l > /etc/passwd
C:\Windows
/home/<svnuser>/.ssh/authorized_keys
PubkeyAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no/home/<svnuser>/.ssh/authorized_keys as follows. Note that every user which is supposed to use SVN uses the same login but a different key, thus you have to add one line for every user/key.
Note: This is all on one very long line.
command="svnserve -t -r c:/mySVNroot/ --tunnel-user=<SVNuser>",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty ssh-rsa <thePublicKey> <publicKeyComment>The trick here is to use the slash instead of backslash to specifiy the SVN repository root:
-r c:/mySVNroot.
Another important thing is --tunnel-user=<SVNuser>.
Since all users later will do a SSH login with the same login name (but different keys) you have to map each key to a SVN user - remember that SVN maintains its own users/userrights.
svn+ssh://<PuTTYSessionName>/<MyRepository>/trunk
In various documentations and news group postings you will read that the URL has to contain the real path on the server. But this is not neccessary if the -r parameter was set correctly, see 10. I swear, for me it works fine :-)
Thorsten