Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have a svn repository on a server that i access through svn+ssh. i have only user access (not root) and i cannot install mod_dav.

is there a way to configure multiple user access (ie. with multiple ssh keys) to the svn repository without giving the other svn users full ssh access ?

share|improve this question
up vote 3 down vote accepted

Sure, just drop the extra keys into the authorized_keys with a forced command of /usr/bin/svnserve -t (or alternate path as appropriate).

share|improve this answer
thank you now i get it after to @christianwolff explanation. i didn't know you can force a command that way. – gpilotino Nov 19 '09 at 13:49

What womble meant is that you can assign only one command to a ssh public key in the authorized_keys.

command="/usr/bin/svnserve -t" ssh-rsa ...

In this example the user accessing via his ssh key can only run the command /usr/bin/svnserve -t.

share|improve this answer
thank you for the explanation, i missed this piece =) – gpilotino Nov 19 '09 at 13:47
No problem. It's not a common task but it can be very useful as you can see. ;-) – cwo Nov 19 '09 at 13:59

There are three ways to access subversion:

  1. Via apache
  2. svnserve
  3. svnserve over SSH

If you've ruled out all of these then you need to move your subversion repository to somewhere else or not give people access.

share|improve this answer

You can give each of the people you want to have access a public key which they can use to connect through the same SSH user. Forcing each key to only be able to run svnserve -t --tunnel-user=<username> gives each key a separate SVN identity. This is covered well in a blog post by James Gardner.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.