[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: per-repository SVN_SSH?

From: Vineet Kumar <vineet_at_doorstop.net>
Date: 2007-06-12 03:02:58 CEST

* Jules Colding (colding@omesc.com) [070608 06:46]:
> I have a few repositories from gnome checked out and a few of my own. My
> problem is that I'm using different identities for these repositories.
> My default public key (with passphrase) is used when accessing gnome
> repositories but my other public key (no passphrase) is used for my own
> repositories.
>
> My SVN_SSH environment variable (in linux) does therefore looks like:
>
> export SVN_SSH="ssh -i $HOME/.ssh/no_passphrase_id_rsa"
>
> if I'm working with my own repositories while it is unset for the gnome
> repositories.
>
> It would therefore be a lot more convenient if there was a way to tell
> svn to use the above SVN_SSH for my own repositories but not for the
> gnome repositories.
>
> Possible?

Another option is to set up an ssh host in your ~/.ssh/config and check
out from there:

Host mysvnalias
        HostName realsvnhostname
        IdentityFile ~/.ssh/no_passphrase_id_rsa

svn co svn+ssh://mysvnalias/...

Of course, using ssh-agent as Thomas suggested is a better idea than
using a passphrase-less key in the first place.

Vineet

-- 
http://www.doorstop.net/
-- 
"As we enjoy great advantages from inventions of others, we should be glad
of an opportunity to serve others by any invention of ours; and this we
should do freely and generously."	--Benjamin Franklin

Received on Tue Jun 12 03:03:21 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.