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

Re: Subversion 1.6 on Ubuntu Server 11.x

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Sat, 11 Jun 2011 21:28:30 -0400

On Sat, Jun 11, 2011 at 12:57 PM, Geoff Hoffman
<ghoffman_at_cardinalpath.com> wrote:

>> Frankly, I find it more effective, and safer, to use SSH keys and a
>> key agent as necessary, with a key specifically dedicated to the SVN
>> access. This can be mandated with "SVN_SSH='ssh -l username -i
>> keyname'" to avoid using other keys.
>
>
> I don't mind doing this, but is this something that goes in .bash_profile?
> And would I then use svn+ssh://localhost/svn/repo/etc
> instead of http://localhost/svn/repo/etc?

Depends on your shell. .bashrc is good on Linux boxes with the default
shell of "bash". It's especially useful to configure when sudo'ing to
root environments, using hte "$SUDO_USER" setting. If willing to take
the thought out risks, one can even enable sudo to propagate the
"SVN_SSH" and "SSH_AUTH_SOCK" environment variables for just such
usage. This makes committing changes as a root user noticeably easier
and safer.

I still run into people who prefer tcsh or zsh or ksh, so the exact
implementation is sensitive.
Received on 2011-06-12 03:29:02 CEST

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