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

Re: svnsync via svn+ssh w/key authentication: password prompt

From: Nico Kadel-Garcia <nkadel_at_gmail.com>
Date: Fri, 29 Aug 2014 21:29:31 -0400

On Fri, Aug 29, 2014 at 12:22 PM, Sampson, Barry
<barry.sampson_at_teejet.com> wrote:
> I am attempting to use svnsync over a SSH tunnel, which works, but always
> prompts for a password. I already setup ssh key authentication, which does
> work fine when performing svn commands.

Ahh. Welcome to the world of "ssh-agent', and the very useful little
Perl wrapper for it called 'keychain'.

Install 'keychain', read the docs, and you can set up your ssh-agent
to be shareable for multiple sessions.

> I can establish a SSH tunnel with keys like this – no password prompts:
>
> ssh servername
>
>
>
> Using svn, I can do this without being prompted for a password:
>
> svn list svn+ssh://servername/path/to/repos
>
>
>
> However, this does prompt for a password:
>
> svnsync sync svn+ssh://servername/path/to/repos
>
>
>
> And just for good measure, this does the same thing:
>
> svnsync sync svn+ssh://username@servername/path/to/repos
>
>
>
> Any ideas of what I can do here to eliminate the password prompt? My goal
> is to automate a ‘push’ synchronization via hooks scripts.
Received on 2014-08-30 03:29:59 CEST

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

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