I am trying to connect to a svn repository via a ssh tunnel.
I have an account on a shared server (linux box).
I have setup a svn repository in /home/my_account/svnroot
I have given all files in the repository rwx permissions and changed the svnserve.conf to allow read/write access.
My client is WinXP running tortoiseSVN
Steps taken:
Run svn as a service on the server using port 8499.
svnserve -r /home/account_name/svnroot --listen-port 8499 -d
Can browse the repository using tortoiseSVN and the url svn://hostname.com:8499/
However adding ssh is where I encounter the problem.
I am using ssh authentication via rsa public / private key combo.
Using putty I have saved a connection profile called myConnection which authenticates with the server correctly.
Running
~Plink.exe -load myConnection svnserve -t -r /home/sportontime/svnroot
from the command line returns from the server
$ Bash: line 1: svnserve: command not found
indicating the server can not find the svn binaries
I then added
command="export Path=${PATH}:/usr/local/bin/svnserve" ssh-rsa AAAAB3etc
to the start of my authorized_keys file
Now when I now run
plink.exe -load myConnection svnserve -t -r /home/my_account/svnroot
the cursor returns without any apparent dialog - however I was expecting a reply something along the lines of
( success (1 2 (ANONYMOUS EXTERNAL) ( edit-pipeline ) ) ), similar to what I see if I run the same command on the server.
Am I correct in assuming that is what should be returned?
I tried to run a script from the authorized_keys file to log the output however the script ran but then authentication failed. Any
ideas about how to log what is happening? How else can I run a wrapper script, bearing in mind I have limited access to the server?
Once that is working I am still confused about how to connect to the repository using tortoiseSVN
Do I set my client %Application_Data%/Subversion/config file to have
[tunnel]
ssh = h:/plink_path/plink.exe -load myConnection
and
access the repo-browser using svn+ssh://myConnection/home/my_account/svnroot
(even if I have run the svnserve command on the server with the -r flag?)
Or
do I use the network/ssh tab in the settings dialogue box gui?
h:/plink_path/plink.exe -load myConnection
Do I need to use "-load myConnection" or will the connection be called as part of the url?
Thanks in advance for any help.
Angus.
Received on Mon Feb 7 19:59:54 2005