Difference between revisions of "Svn notes"

From DiLab
Jump to: navigation, search
Line 12: Line 12:


SVN_SSH='ssh -l username' rapidsvn
SVN_SSH='ssh -l username' rapidsvn

== Single unix account, many users with pub key auth. ==

Here is a description on how to set up svn on a single unix account and using private-public key authorization for multiple users.
* http://svn.collab.net/repos/svn/trunk/notes/ssh-tricks

In short: edit .ssh/authorized_keys file by adding lines as follows:

Consider
ssh-rsa AAAABlotsmoregookhere= address@example.com
as "TYPE KEY COMMENT". Then add the following lines, one prer user:

command="/path/to/svnserve -t -r /repository/root --tunnel-user=alice",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty TYPE1 KEY1 COMMENT1
command="/path/to/svnserve -t -r /repository/root --tunnel-user=bob",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty TYPE2 KEY2 COMMENT2

Now you can have users authenticating the svn access with their private/public keys, using a single svn/unix account.

Revision as of 12:18, 25 January 2010

Global ignore

  • Where to set the pattern for files to be ignored:

You can modify /etc/subversion/config like this

[miscellany]
global-ignores = *.class *.o tmp


  • How to use a different username for a svn client (for example, rapidsvn)
SVN_SSH='ssh -l username' rapidsvn

Single unix account, many users with pub key auth.

Here is a description on how to set up svn on a single unix account and using private-public key authorization for multiple users.

In short: edit .ssh/authorized_keys file by adding lines as follows:

Consider

ssh-rsa AAAABlotsmoregookhere= address@example.com 

as "TYPE KEY COMMENT". Then add the following lines, one prer user:

 command="/path/to/svnserve -t -r /repository/root --tunnel-user=alice",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty TYPE1 KEY1 COMMENT1
 command="/path/to/svnserve -t -r /repository/root --tunnel-user=bob",no-port-forwarding,no-agent-forwarding,no-X11-forwarding,no-pty TYPE2 KEY2 COMMENT2

Now you can have users authenticating the svn access with their private/public keys, using a single svn/unix account.