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
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).
The path you listed above specifically is for 'https'. You would need to set your path to something like:
default = ssh://firstname.lastname@example.org/emmap1/bitbucketspacestation
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.
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs