On Monday 03 Mar 2003 3:58 pm, Matt Kraai wrote:
> 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
--
Best Regards.
JC.
==================================================================
jct@panonet.net
=================================================================
---------------------------------------------------------------------
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:54:12 2003