Reputation: 205
I am trying to make a push using mercurial to a repo on Bitbucket. I made sure to copy correctly the ssh key from ~/.ssh/id_rsa.pub
to my bitbucket account.
cat .hg/hgrc
[paths]
default = ssh://bitbucket.org/mcarey/arakoon
Still when pushing I got this error:
pushing to ssh://bitbucket.org/mcarey/arakoon
remote: Permission denied (publickey).
abort: no suitable response from remote hg!
I would assume the problem is as the repo shall be
ssh://[email protected]/mcarey/arakoon
Is this correct? If so how to modify it? If not, what is it about?
Upvotes: 3
Views: 771
Reputation: 205
Ok. important to note the following
hg@ before the bitbucket.org/YOURNAME/REPONAME
YOURNAME shall be the name in the repo not the user name. the username is attached in the SSH key or HTTPS username/password.
These were my problems. Its solved now
Upvotes: 1
Reputation: 5444
Just edit .hg/hgrc:
[paths]
default = ssh://[email protected]/YOURNAME/REPONAME
Upvotes: 2