I created a public key for ssh and registered that key with BitBucket. I then attempted to push:
$ hg push ssh://jhayward@bitbucket.org/johncharrell/[project name]
pushing to ssh://jhayward@bitbucket.org/johncharrell/[project name
running ssh jhayward@bitbucket.org "hg -R johncharrell/[project name serve --stdio"
remote: Warning: Permanently added the RSA host key for IP address '[server IP]' to the list of known hosts.
remote: Permission denied (publickey).
abort: no suitable response from remote hg!
What do I need to do so that my public key (or some other created for the purpose) will let me do an hg push from the shell or crontab? In BitBucket, I have read and write permissions to the project, but not to my knowledge anything administrative.
Permission denied (publickey)basically means your public key is either missing from bitbucket or its somehow invalid. Try making a new.pubkey withssh-keygenand delete the old one referring to your host machine and register it. – htor Sep 14 '12 at 19:15ssh://hg@bitbucket.org/accountname/reponame/– jasonwryan Sep 14 '12 at 19:42