Difference between revisions of "Setup svn over SSH server"

From Notes_Wiki
m
m
 
Line 1: Line 1:
<yambe:breadcrumb>Subversion|Subversion</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Subversion|Subversion (SVN)]] > [[Setup svn over SSH server]]
=Setup SVN over SSH server=


To setup SVN over SSH server use following steps:
To setup SVN over SSH server use following steps:
Line 22: Line 21:




<yambe:breadcrumb>Subversion|Subversion</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Versioning tools]] > [[Subversion|Subversion (SVN)]] > [[Setup svn over SSH server]]

Latest revision as of 15:37, 24 August 2022

Home > CentOS > CentOS 6.x > Versioning tools > Subversion (SVN) > Setup svn over SSH server

To setup SVN over SSH server use following steps:

  1. First ensure that all users who are going to use the repository are in some group.
  2. Ensure users of above group can SSH to machine
  3. Create a SVN repository folder using command:
    svnadmin create <folder_name>
    The above folder should be created in some common place such as '/opt/svn' instead of creating in users home folder.
  4. Change group owner of folder to created group using 'chgrp -R <group_name> <folder_name>'
  5. Checkout revision 0 of svn folder using:
    svn co svn+ssh://<ssh_username>@<machine_ip_or_name><SVN_repository_folder_path>
  6. Now user can work on the working copy using commands such as 'svn up' or 'svn commit' etc.


If SSH access is provided only for svn and it is desired that users should not be able to perform any other activity then one can use Restricting SSH access to a given command configuration.


Home > CentOS > CentOS 6.x > Versioning tools > Subversion (SVN) > Setup svn over SSH server