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

Re: Why Subversion is asking me to authenticate 3 times ?

From: Konrad Rosenbaum <konrad_at_silmor.de>
Date: 2005-12-04 13:06:42 CET

On Tuesday 29 November 2005 22:25, Xavier MOGHRABI wrote:
> Can you please tell me more on how to configure ssh-agent with Subversion
> + SSH ?

First, put a line like this into your .xinitrc (or whatever you use on
login):
ssh-agent $MYWINDOWMANAGER

with $MYWINDOWMANAGER being the WM start command that was in there anyway,
if you are using KDE you could also change startkde's last line from "exec
kwm" to "exec ssh-agent kwm"; Gnome should be similiar; if you are using
SuSE Linux it is already in there; if you are using Windows: tough luck

Actually what this does is: the SSH agent starts, creates a local (private)
socket on which SSH can query for passphrases/keys, and then starts the
process it got as parameter with the environment variables SSH_AGENT_PID
and SSH_AUTH_SOCK set - usually if you use the window manager as that
process all other processes inside your X session will be derived from it
(including svn and ssh which requires those variables to use the agent);

The agent quits automagically when the command quits that it started.

Second, register your secret key with the agent:
ssh-add [.ssh/$mysecretkeyfile]

Third, use svn as you used to.

        Konrad

  • application/pgp-signature attachment: stored
Received on Sun Dec 4 13:12:24 2005

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