[issue2711] hg init asks ssh password twice (v1.8.1)

ficreature bugs at mercurial.selenic.com
Thu Mar 17 21:11:29 UTC 2011


New submission from ficreature <fictive at sci.fi>:

Command 'hg --debug init ssh://hg@hgserver/testrepo01' asks twice for the
user's password. I'm not using SSH public key authentication.
This problem occurs on Linux and Windows alike. hg --version 1.8.1

The problem seems to reside in
/usr/lib/python2.7/site-packages/mercurial/sshrepo.py
It does this: running ssh hg at hgserver "hg init testrepo01"
And then this: running ssh hg at hgserver "hg -R testrepo01 serve --stdio"

I don't know why the second (hg serve) command takes place
("self.validate_repo(...)") and I don't know how to program in Python,
that's why I didn't try to make a bug fix.


### An example run of the command:

~/playground hg --debug init ssh://hg@hgserver/testrepo01
running ssh hg at hgserver "hg init testrepo01"
Password:
running ssh hg at hgserver "hg -R testrepo01 serve --stdio"
sending hello command
sending between command
Password:
remote: 94
remote: capabilities: lookup changegroupsubset branchmap pushkey stream
unbundle=HG10GZ,HG10BZ,HG10UN
remote: 1

----------
messages: 15722
nosy: ficreature
priority: bug
status: unread
title: hg init asks ssh password twice (v1.8.1)

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2711>
____________________________________________________


More information about the Mercurial-devel mailing list