Svn Checkout with Private Key Over SSH

I was trying to find a command line flag to specify a private key to use with svn checkout over ssh, and it turns out you cannot do this. Instead, run the following commands first (or, better yet, add them to your ~/.bash_profile):

SVN_SSH="ssh -i $HOME/.ssh/id_dsa.subversion"
export SVN_SSH

Just specify the path to your private key using the SVN_SSH environment setting as shown above.

Possibly related posts:

  1. Ignoring pyc and other file patterns in Subversion

You should follow me on Twitter here.
Subscribe to labs via email here.

About this entry