You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by anatoly techtonik <te...@gmail.com> on 2009/11/16 15:31:17 UTC
svn+ssh asks password twice
Hello,
Subversion command line client request password twice or more with
svn+ssh access method. I understand that it need to do several
requests for one operation, but why can't it share the same SSH
connection? I want to enter a bug report, but because of "buddy
system" I mail it here first.
It becomes a major annoyance when in addition you have several
externals in the same svn+ssh repository and switch from passwords to
SSH keys is not welcomed.
Thanks for support,
--
anatoly t.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2418558
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: svn+ssh asks password twice
Posted by Bob Archer <bo...@amsi.com>.
> On Mon, Nov 16, 2009 at 05:31:17PM +0200, anatoly techtonik wrote:
> > Hello,
> >
> > Subversion command line client request password twice or more
> with
> > svn+ssh access method. I understand that it need to do several
> > requests for one operation, but why can't it share the same SSH
> > connection?
>
> Can you provide a working example invocation of svn using svn+ssh
> where two authentication steps are required for the same run of
> the svn program, without externals involved?
>
> > I want to enter a bug report, but because of "buddy
> > system" I mail it here first.
>
> Good :)
>
> > It becomes a major annoyance when in addition you have several
> > externals in the same svn+ssh repository and switch from
> passwords to
> > SSH keys is not welcomed.
>
> For each external, a separate repository access session is opened.
> I don't see how this can be changed for the general case where
> the external comes from a different repository.
> Subversion should make re-using credentials possible when
> connecting
> to the same repository twice (e.g. an external pointing somewhere
> into
> the same repository). I haven't checked but don't think Subversion
> does
> that right now.
>
> The best way of not having to enter a password with svn+ssh is
> using
> SSH keys, or course. Too bad you cannot switch to SSH keys :(
>
> With other repository access methods, it's also possible to have
> your Subversion password cached on disk encrypted, so you don't
> have to enter it.
>
If I recall somone on the Tortiose list did a video on how to use Putty to connect via ssh and then have all the TSVN traffic go through that connection. I think he was using keys... but it looks like pagent will autologin with a password.... Cause pagent had an option to auto login username. I could be mistaken.
http://www.vimeo.com/5378553
BOb
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2418578
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn+ssh asks password twice
Posted by Stefan Sperling <st...@elego.de>.
On Tue, Nov 17, 2009 at 08:46:36PM +0200, anatoly techtonik wrote:
> On Mon, Nov 16, 2009 at 5:51 PM, Stefan Sperling <st...@elego.de> wrote:
> >
> > Can you provide a working example invocation of svn using svn+ssh
> > where two authentication steps are required for the same run of
> > the svn program, without externals involved?
>
> svn co svn+ssh://svn.server.com/bla/bla/bla
> bla/bla/bla should exist or else only one step is needed.
>
> svn diff -r x:y
> svn st -u
> two requests
Ok I can reproduce those.
The problem with status is that it needs to open a second connection
to the repository to enquire about locks on the server. Haven't looked
at why diff does it.
Feel free to file an issue to track this problem.
Stefan
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419150
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn+ssh asks password twice
Posted by anatoly techtonik <te...@gmail.com>.
On Mon, Nov 16, 2009 at 5:51 PM, Stefan Sperling <st...@elego.de> wrote:
>
> Can you provide a working example invocation of svn using svn+ssh
> where two authentication steps are required for the same run of
> the svn program, without externals involved?
svn co svn+ssh://svn.server.com/bla/bla/bla
bla/bla/bla should exist or else only one step is needed.
svn diff -r x:y
svn st -u
two requests
There can be more, but everything else I've tried uses one request so far:
svn up
svn switch
svn ls
svn blame
svn ci
>> I want to enter a bug report, but because of "buddy
>> system" I mail it here first.
>
> Good :)
I still hesitate. It is still only three operations that require two
connections, but there can be more - merge, for example.
It can be eventually two tickets - the second one for reusing
connection for svn:externals from the same repository.
> Subversion should make re-using credentials possible when connecting
> to the same repository twice (e.g. an external pointing somewhere into
> the same repository). I haven't checked but don't think Subversion does
> that right now.
I've checked. It doesn't. =)
> With other repository access methods, it's also possible to have
> your Subversion password cached on disk encrypted, so you don't
> have to enter it.
It is a strict requirement that password should be entered manually.
Subversion is used for deployment. Tag is created to fetch code from
various paths of repository trunk and branches via svn:externals.
Every operation should be confirmed by password to avoid any
casualties ("oops, wrong window" stuff).
Thanks to this discussion I now think about making a SSH key with
password, but key management for every developer with SSH account who
can make a deployment could be a problem.
https:// method won't work, because there is already an Apache2 there
with a lot of custom dependencies. Running two Apache2 instances on
443 port is impossible and running two Apache2s on separate ports is
not a solution, because there is also Apache 1.3 for some legacy
applications (even though it's Debian Lenny). I do not want to make
things more complicated than they already are. =) I also do not want
to maintain another file with SVN accounts when everybody has SSH.
Please, CC.
--
anatoly t.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419047
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn+ssh asks password twice
Posted by Stefan Sperling <st...@elego.de>.
On Mon, Nov 16, 2009 at 05:31:17PM +0200, anatoly techtonik wrote:
> Hello,
>
> Subversion command line client request password twice or more with
> svn+ssh access method. I understand that it need to do several
> requests for one operation, but why can't it share the same SSH
> connection?
Can you provide a working example invocation of svn using svn+ssh
where two authentication steps are required for the same run of
the svn program, without externals involved?
> I want to enter a bug report, but because of "buddy
> system" I mail it here first.
Good :)
> It becomes a major annoyance when in addition you have several
> externals in the same svn+ssh repository and switch from passwords to
> SSH keys is not welcomed.
For each external, a separate repository access session is opened.
I don't see how this can be changed for the general case where
the external comes from a different repository.
Subversion should make re-using credentials possible when connecting
to the same repository twice (e.g. an external pointing somewhere into
the same repository). I haven't checked but don't think Subversion does
that right now.
The best way of not having to enter a password with svn+ssh is using
SSH keys, or course. Too bad you cannot switch to SSH keys :(
With other repository access methods, it's also possible to have
your Subversion password cached on disk encrypted, so you don't
have to enter it.
Stefan
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2418570
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn+ssh asks password twice
Posted by Erik Huelsmann <eh...@gmail.com>.
On Mon, Nov 16, 2009 at 4:47 PM, anatoly techtonik <te...@gmail.com> wrote:
> That's exactly that I want to discuss. pageant is a password-caching
> tool only for passwords for SSH keys - not for SSH passwords. In
> addition, cached passwords is not an option.
>
> Why svn can't reuse one ssh connection?
Because Subversion does things which don't parallelize well inside the
software? Merging, blaming and others all use multiple network
connections, afaik. As others explained: when using externals,
Subversion can't know that the repository you're connecting to will be
the same as the one you're checking your main tree out of: the main
reason it exists is to pull stuff from other repositories.
A better question would be: if svn+ssh does not suit your needs, why
not switch to something which does? (https://?)
Bye,
Erik.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2418710
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn+ssh asks password twice
Posted by Stefan Sperling <st...@elego.de>.
On Mon, Nov 16, 2009 at 05:47:58PM +0200, anatoly techtonik wrote:
> That's exactly that I want to discuss. pageant is a password-caching
> tool only for passwords for SSH keys - not for SSH passwords. In
> addition, cached passwords is not an option.
>
> Why svn can't reuse one ssh connection?
Because most people are happy with using SSH keys, so there isn't much
need to implement this feature. Subversion could do this, but someone
has to do the work, that's all.
You could file an issue asking for this feature to be added,
maybe someone will pick it up some day.
Stefan
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2418573
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn+ssh asks password twice
Posted by anatoly techtonik <te...@gmail.com>.
That's exactly that I want to discuss. pageant is a password-caching
tool only for passwords for SSH keys - not for SSH passwords. In
addition, cached passwords is not an option.
Why svn can't reuse one ssh connection?
--
anatoly t.
On Mon, Nov 16, 2009 at 5:41 PM, Bob Archer <Bo...@amsi.com> wrote:
>> Subversion command line client request password twice or more with
>> svn+ssh access method. I understand that it need to do several
>> requests for one operation, but why can't it share the same SSH
>> connection? I want to enter a bug report, but because of "buddy
>> system" I mail it here first.
>>
>> It becomes a major annoyance when in addition you have several
>> externals in the same svn+ssh repository and switch from passwords
>> to
>> SSH keys is not welcomed.
>>
>> Thanks for support,
>
> From the svn book:
>
> When using svn+ssh:// URLs to access a repository, remember that it's the ssh program prompting for authentication, and not the svn client program. That means there's no automatic password-caching going on (see the section called "Client Credentials Caching"). The Subversion client often makes multiple connections to the repository, though users don't normally notice this due to the password caching feature. When using svn+ssh:// URLs, however, users may be annoyed by ssh repeatedly asking for a password for every outbound connection. The solution is to use a separate SSH password-caching tool such as ssh-agent on a Unix-like system, or pageant on Windows.
>
> BOb
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2418568
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: svn+ssh asks password twice
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Nov 16, 2009, at 09:41, Bob Archer wrote:
>> Subversion command line client request password twice or more with
>> svn+ssh access method. I understand that it need to do several
>> requests for one operation, but why can't it share the same SSH
>> connection? I want to enter a bug report, but because of "buddy
>> system" I mail it here first.
>>
>> It becomes a major annoyance when in addition you have several
>> externals in the same svn+ssh repository and switch from passwords
>> to
>> SSH keys is not welcomed.
>>
>> Thanks for support,
>
> From the svn book:
>
> When using svn+ssh:// URLs to access a repository, remember that it's the ssh program prompting for authentication, and not the svn client program. That means there's no automatic password-caching going on (see the section called "Client Credentials Caching"). The Subversion client often makes multiple connections to the repository, though users don't normally notice this due to the password caching feature. When using svn+ssh:// URLs, however, users may be annoyed by ssh repeatedly asking for a password for every outbound connection. The solution is to use a separate SSH password-caching tool such as ssh-agent on a Unix-like system, or pageant on Windows.
This is also a FAQ:
http://subversion.tigris.org/faq.html#ssh-auth-cache
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2418682
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: svn+ssh asks password twice
Posted by Bob Archer <bo...@amsi.com>.
> Subversion command line client request password twice or more with
> svn+ssh access method. I understand that it need to do several
> requests for one operation, but why can't it share the same SSH
> connection? I want to enter a bug report, but because of "buddy
> system" I mail it here first.
>
> It becomes a major annoyance when in addition you have several
> externals in the same svn+ssh repository and switch from passwords
> to
> SSH keys is not welcomed.
>
> Thanks for support,