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

Re: Can I authenticate to Subversion using ssh?

From: David Aldrich <david.aldrich.ntml_at_gmail.com>
Date: Tue, 19 Jan 2021 17:39:13 +0000

Hi Daniel

Thanks for your reply. I've had a look at the Subversion book and done some
Googling. It isn't easy to know how to configure svn on the server for

We use the Collabnet Edge distribution of Subversion, which we believe only
supports http/https - not svnserve.

Do you (or anyone else reading this) know whether it would be possible to
install svnserve on the same server as used for Edge, (or even on different
servers with replication of repos)?

We use 'svn_access_file' for access permissions. Is svnserve compatible
with svn_access_file?

With best regards

On Tue, Jan 19, 2021 at 10:03 AM Daniel Sahlberg <
daniel.l.sahlberg_at_gmail.com> wrote:

> Den tis 19 jan. 2021 kl 10:47 skrev David Aldrich <
> david.aldrich.ntml_at_gmail.com>:
>> Hi
>> We run a Jenkins job that lists the branches and tags of a certain svn
>> repository by running 'svn ls'.
>> The command, of course, requires svn authentication and so a password
>> must be provided. Jenkins has a svn plugin which allows it to check out
>> from svn repositories, using stored credentials, before running a job. As
>> far as I know, the job itself can't access those credentials. The job
>> script could provide the password but that is very insecure. I have gotten
>> around this in the past by using gnome keyring, but I find that very hard
>> to install on a headless server, so I have a problem of how to provide the
>> password.
>> So my question is: is it possible to authenticate to svn, i.e. run svn
>> commands, using ssh key-based authentication instead of using a password?
>> If so, can you point me in the right direction please?
> This is possible to tunnel the connection through SSH in which case you
> only need to authenticate the SSH connection (for example using keys).
> However it require some support/configuration on the server side so it
> depends on the server.
> The process is fairly well described in the Subversion book:
> http://svnbook.red-bean.com/nightly/en/svn.serverconfig.svnserve.html
> Kind regards,
> Daniel Sahlberg
Received on 2021-01-19 18:39:30 CET

This is an archived mail posted to the Subversion Users mailing list.

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