You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Anne Hammond <ha...@txcorp.com> on 2007/02/15 21:44:15 UTC

svn+ssh requests password 3 times

Subversion command-line client, version 1.2.1.

We use command:
    svn co svn+ssh://volt.xxxxxx.com/projsvn/anne

and it prompts for Password 3 times.  On the third time,
it correctly completes the command.  But generally after
the second correct entry the user will file a report that
svn+ssh is not working.

I haven't been able to track this down.  Is it an sshd
configuration issue?

Here is an strace of the first 2 requests:

read(5, Password:
"( success ( 1 2 ( ANONYMOUS EXTE"..., 256) = 61
write(4, "( 2 ( edit-pipeline ) 38:svn+ssh"..., 66) = 66
read(5, "( success ( ( ANONYMOUS EXTERNAL"..., 4096) = 42
write(4, "( EXTERNAL ( 0: ) ) ", 20)    = 20
read(5, "( success ( ) ) ( success ( 36:b"..., 4096) = 114
write(4, "( get-latest-rev ( ) ) ", 23) = 23
read(5, "( success ( ( ) 0: ) ) ( success"..., 4096) = 41
write(4, "( get-latest-rev ( ) ) ", 23) = 23
read(5, "( success ( ( ) 0: ) ) ( success"..., 4096) = 41
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x2a9aefc000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2528
brk(0x552ac08000)                       = 0x552ac08000
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2a9aefc000, 4096)              = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/subversion.mo", O_RDONLY) 
= -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/subversion.mo", O_RDONLY) = 
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/subversion.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/subversion.mo", O_RDONLY) = 
-1 ENOENT (No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/subversion.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/subversion.mo", O_RDONLY) = -1 
ENOENT (No such file or directory)
write(4, "( get-locations ( 0: 0 ( 0 ) ) )"..., 33) = 33
read(5, "( success ( ( ) 0: ) ) ( 0 1:/ )"..., 4096) = 54
close(5)                                = 0
close(4)                                = 0
wait4(26020, 0x7fbffff068, WNOHANG|WSTOPPED, NULL) = 0
kill(26020, SIGKILL)                    = 0
wait4(26020, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGKILL}], WSTOPPED, NULL) 
= 26020
--- SIGCHLD (Child exited) @ 0 (0) ---
pipe([3, 4])                            = 0
pipe([5, 6])                            = 0
clone(child_stack=0, 
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x2a980bbc30) = 26058
close(3)                                = 0
close(6)                                = 0
read(5, Password:

Thanks for any pointers.

Anne

Anne M. Hammond - Systems / Network Administration - Tech-X Corp
                   hammond_at_txcorp.com 720-974-1840

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn+ssh requests password 3 times

Posted by Anne Hammond <ha...@txcorp.com>.
Thanks.  This makes sense.  I will make sure new users
know this.

On Thu, 15 Feb 2007, Ryan Schmidt wrote:

>
> On Feb 15, 2007, at 16:03, Anne Hammond wrote:
>
>> I'm pretty familiar with ssh, generating and installing keys,
>> etc.
>> 
>> If you do a straight ssh svnhost, you are only asked for your
>> password once.  I think it is using keyboard-interactive/pam
>> authentication by default.
>> 
>> So is svn asking ssh to try a different authentication method??
>
> I believe Subversion merely needs to make multiple connections to do its 
> thing. Since Subversion cannot cache ssh passwords, it must ask you for the 
> password each time, if you haven't generated keys and so forth.
>
>
> -- 
>
> To reply to the mailing list, please use your mailer's Reply To All function
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn+ssh requests password 3 times

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 15, 2007, at 16:03, Anne Hammond wrote:

> I'm pretty familiar with ssh, generating and installing keys,
> etc.
>
> If you do a straight ssh svnhost, you are only asked for your
> password once.  I think it is using keyboard-interactive/pam
> authentication by default.
>
> So is svn asking ssh to try a different authentication method??

I believe Subversion merely needs to make multiple connections to do  
its thing. Since Subversion cannot cache ssh passwords, it must ask  
you for the password each time, if you haven't generated keys and so  
forth.


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn+ssh requests password 3 times

Posted by Anne Hammond <ha...@txcorp.com>.
Thanks Ryan,

I'm pretty familiar with ssh, generating and installing keys,
etc.

If you do a straight ssh svnhost, you are only asked for your
password once.  I think it is using keyboard-interactive/pam
authentication by default.

So is svn asking ssh to try a different authentication method??

Anne

Anne M. Hammond - Systems / Network Administration - Tech-X Corp
                   hammond_at_txcorp.com 720-974-1840

On Thu, 15 Feb 2007, Ryan Schmidt wrote:

>
> On Feb 15, 2007, at 15:44, Anne Hammond wrote:
>
>> We use command:
>>   svn co svn+ssh://volt.xxxxxx.com/projsvn/anne
>> 
>> and it prompts for Password 3 times.  On the third time,
>> it correctly completes the command.  But generally after
>> the second correct entry the user will file a report that
>> svn+ssh is not working.
>> 
>> I haven't been able to track this down.  Is it an sshd
>> configuration issue?
>
> That is simply the way that svn+ssh works. See the FAQ for workarounds:
>
> http://subversion.tigris.org/faq.html#ssh-auth-cache
>
>
> -- 
> To reply to the mailing list, please use your mailer's Reply To All function
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn+ssh requests password 3 times

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Feb 15, 2007, at 15:44, Anne Hammond wrote:

> We use command:
>    svn co svn+ssh://volt.xxxxxx.com/projsvn/anne
>
> and it prompts for Password 3 times.  On the third time,
> it correctly completes the command.  But generally after
> the second correct entry the user will file a report that
> svn+ssh is not working.
>
> I haven't been able to track this down.  Is it an sshd
> configuration issue?

That is simply the way that svn+ssh works. See the FAQ for workarounds:

http://subversion.tigris.org/faq.html#ssh-auth-cache


--  

To reply to the mailing list, please use your mailer's Reply To All  
function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org