- First thing you will have to do is to generate a public/private keys (this step has been detailed in a previous post on this blog, see here)
- Of course, generate, in the server, the subversion repository with
svnadmin
. I'll assume that the repository lies in the following path/home/username/svn
and the URL of the subversion is www.example.com. - Edit the client/local file
~/.subversion/config
and under the[tunnels]
section, add the following line (assuming that the SSH connections in your cPanel host service provided go through the port 2222)cpanel = ssh -p 2222
By doing this you are creating a new protocol for subversion that uses SSH for the specified port - In the client/local machine, you will be able to check out from the subversion repository entering the following command line:
svn co svn+cpanel://username@example.com/home/username/svn
Thursday, March 11, 2010
Checking out revisions from a Subversion repo with SSH + cPanel
If you are using cPanel for a web hosting and require to have a subversion repository in order to develop your code and checking it out/commiting remotely, you will need to properly configure it using SSH protocol. This post briefly describes how to do it. The basis of this short tutorial is based on the A2 hosting wiki that you will be able to find in this link. Follow these steps:
Subscribe to:
Post Comments (Atom)
I get it clear about this concept and before this i never read this kind of information.Thanks a lot.Website Hosting India
ReplyDelete