Svn Checkout with Private Key Over SSH

30 Jan 2010

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.

Let's talk

I'm one of the founders of Venmo. If you liked this essay/experiment -- or didn't -- @ me.