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

Re: Password prompt for everyrepository co

From: Matt Kraai <kraai_at_alumni.cmu.edu>
Date: 2003-03-03 16:58:59 CET

On Mon, Mar 03, 2003 at 03:49:04PM +0000, JC Tchitchiama wrote:
> On Monday 03 Mar 2003 3:36 pm, Matt Kraai wrote:
> > On Mon, Mar 03, 2003 at 03:31:51PM +0000, JC Tchitchiama wrote:
> > > Greetings folks,
> > >
> > > I hope this question has not been asked before if so apologies in advance
> > > and please just point me to the mail with hopefully some answers.
> > >
> > > Here is the problem:-
> > >
> > > o I have a script that has to request checkout for a number of
> > > repositorieS. o the script basically calls "svn chechout" many many time.
> > > o now each time the user is prompted for a password to enable the ssh
> > > connection to happen.
> > > o the trouble for me is that the same password is asked say 10 times
> > > o I thought asking for the password and storing it for the duration of
> > > the request using the options --username --password but I was told these
> > > options only works when the Subversion Filesystem is accessed via Dav.
> > >
> > > Has anybody come accross the same issue and how was it solve ?
> > > is --username --password also available for secured shell access to the
> > > repository ?
> >
> > Use ssh-agent.
> I thought about that too but that's against our security policy.
> Thanks anyway !!!

You could have it run only for the duration of the script,

 #!/bin/sh
 ...
 eval `ssh-agent`
 ssh-add
 ...
 svn checkout ...
 ...
 svn checkout ...
 ...
 kill $SSH_AGENT_PID

Matt

-- 
Oink!
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Mar 3 17:01:01 2003

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

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