Build the svn + ssh service on Linux

Source: Internet
Author: User
Create a version Library svnadmincreatepath and grant the svnusers user group The chown-Rroot: svnuserspathchmod-Rg + rwspath/* permission to the svnusers group, you can change the corresponding permissions */chmod-Ro-rwxpath/* as needed to delete it...
Create a version Library svnadmin create path to grant the svnusers user group The chown-R root: svnusers path chmod-R g + rws path/* to grant the svnusers group the read and write permissions, you can change the corresponding permissions */chmod-R o-rwx path/* as needed to delete the read, write, and execute permissions of other irrelevant personnel, by default, other users may have the read permission */switch the key generated for svn users to the user environment: su users generate the key pair: ssh-keygen-B 1024-t rsa-N passwd-f keyname where passwd is the key keyword (equivalent to a password), which is customized by the user; after keyname is generated for the key file name, two files are generated: keyname and keyname. in pub, the former is the key, and the latter is the public key www.2cto.com rsa, which is specified to use rsa for encryption. If this parameter is set to dsa, it is encrypted in the user's home directory. in the ssh Directory, copy the public key and rename it to authorized_keys to the directory cp keyname. pub/home/username /. ssh/authorized_keys hand over the private key to the user and use the change resource access permission to modify the version Library/conf/svnserve. conf file, in general, add the following lines of anon-access = none // unauthenticated users do not have any access permissions. auth-access = write // authenticated users have write permissions authz-db = authz // The authentication file is the authz file under the conf directory to modify the version Library/conf/authz File (if not, create it ), add [/] // The access permission to the root directory of the resource (and the following directories) username = rw // if the user's access permission is "READ + write", the user can also perform authentication using the following methods: [groups] svn = policy, and the sim // User Group svn contains two users: fify and sim [/] @ svn = rw // The access permission of the svn user group members is "READ + write" client link method: generate PuTTY key: Open the usernamefile () to windows, open the puttygen.exe file, and select the menu: conversions-> Import key, select the username file, and enter the previously set passphrase. you can see some information about the key and click Save private key to generate the ppk File (assuming it is saved as username. ppk file), that is, the key used by PuTTY to set the TortoiseSVN login method: www.2cto.com right-click in the directory where the svn file will be stored (blank space, choose TortoiseSVN-> Settings-> Network-> SSH client, enter C:/Program Files/TortoiseSVN/bin/TortoisePlink.exe to enable pageant: open pageant.exe, right-click the small icon on the right of the taskbar, select Add Key to Add the generated username. ppk adds co resources: Right-click the Directory (blank space) in which the svn file is to be stored, and checkout: svn + ssh: // username @ host: path, now you can see the svn resource list author showcolors.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.