I found the following batch file useful when configuring
svn+ssh on Windows for the first time. I am using
TortoisePlink for ssh.
Create ssh.bat in c:\blah\, as follows:
@date /T >>"C:\blah\ssh.log"
@time /T >>"C:\blah\ssh.log"
@ECHO %0 %* >>"C:\blah\ssh.log"
@"c:\Program Files\TortoiseCVS\TortoisePlink.exe" %* 3>>"C:\blah\ssh.log"
2<&3
replacing 'blah' and 'blah-blah' with the appropriate paths
for your system.
Then point ssh at this batch file in 'config', using all of the arguments
for
plink (or your favorite Windows ssh implementation), like this:
ssh = "c:\\blah\\ssh.bat" -v -i "C:\\blah-blah\\private.ppk" -2
Note the use of quotes and double backslashes for the config file.
If path blah contains embedded spaces, you will need them.
"ECHO %0 %*" records the command line which svn passes to windows to
execute the batch file. This lets you double-check how your entries
in config are working.
"3>>"C:\blah\ssh.log" 2<&3" redirects standard error to the ssh.log
file, so you can see the -v output from Plink, and errors passed
back from svnserve.
Ken Johnson
Received on Sat May 8 00:22:56 2004