Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

why isnt the user shown by hg fetch the same as my bitbucket username

intentionperception
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 20, 2016

My Bitbucket settings show my username as X, which is the same as my OSX userID. But when I do an "hg fetch", my ~/.ssh/id_rsa seems to be ignored and I'm prompted for the password of user X2. X2 is similar to the concatenation of my First and Last Names in Bitbucket account settings.

How can I get "hg fetch" to use my private key and stop nagging me for a password?

Update: It seems that part of the issue is that localCloneDir/.hg/hgrc contained

    [paths]

    default = https://X2@bitbucket.org/

But I'm still prompted for the password (and I recently removed all prior keys on BB, regenerated my private and public keys, and uploaded these, so there is no disagreement between public and private).

2 answers

1 vote
Gary
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 22, 2016

Hi David,

The path you listed above specifically is for 'https'.  You would need to set your path to something like:

[paths]
default = ssh://hg@bitbucket.org/emmap1/bitbucketspacestation

See https://confluence.atlassian.com/bitbucket/set-up-ssh-for-mercurial-728138122.html.

Cheers,
Gary 

0 votes
intentionperception
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 25, 2016

Thanks, Gary, that got me most of the way to the answer.

My ~/.hgrc had a correct ssh: path as you described. Unfortunately, some tool I'm using also introduced ~/localRepo/.hg/hgrc with the https path I reported earlier. Deleting this path entry solved the problem.

Suggest an answer

Log in or Sign up to answer
TAGS
loom essentials certification, loom training, get certified in loom, atlassian certification, loom async video, video messaging skills, atlassian learning, loom for teams, online certification, loom badge, loom for business, atlassian education

Get Certified in Loom! 🧑‍🎓

Time to up your Loom game! The new Loom Essentials Certification is here! Show off your skills, learn pro tips, and get officially recognized. Perfect for taking your video messaging to the next level.

Learn more
AUG Leaders

Atlassian Community Events