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

Re: Q: is it possible to supply password for svn+ssh via command-line arguments?

From: Reedick, Andrew <Andrew.Reedick_at_BellSouth.com>
Date: 2006-09-27 17:30:27 CEST

> -----Original Message-----
> From: Vitaly Karasik [mailto:Vitaly.Karasik@Kayote.com]
> Sent: Wednesday, September 27, 2006 9:26 AM
> To: users@subversion.tigris.org
> Subject: Q: is it possible to supply password for svn+ssh via
> command-line arguments?
>
> My colleague want to use svn+ssh access from his script, but doesn't
> like public/private keys authentication.
> Is there a way to pass ssh password via "svn" command line?
>

If you're being prompted to enter a password, you can use Expect to have
scripts 'type' the password in when prompted. Expect will allow you to
send/receive keystrokes to a program as if there were someone sitting at
the keyboard. It normally ships with Tcl, but I much prefer Perl's
Expect module.

There's an O'Reilly book, Exploring Expect, that will get you started.
ISBN 1-56592-090-2

However, it's easier to setup the public/private keys than to learn
Expect.

*****

The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. GA622

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Sep 27 17:31:44 2006

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