[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[TSVN] svn+ssh authentication on a shared server

From: angus <guscalder1_at_yahoo.co.uk>
Date: 2005-02-08 12:16:46 CET

I am trying to connect to a svn repository via a ssh tunnel. I have read the
faqs and news groups but cannot get the final step to work.

--Setup--

I have an account on a shared server (linux box) running svn 1.1.3

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 - 1.1.3

--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, on my client, 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 on the server? How else can I run a wrapper script,
bearing in mind I have limited access to the server, using this kind of
authentication?

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 'myConnection' be called as
part of the url?

Thanks in advance for any help.

Angus.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Tue Feb 8 12:17:39 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.