Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Definitely going to give this a go. I have a lot of repos I'd like to keep private, but they're mostly personal projects and not worth paying more money for at GitHub.

Quick question from someone new to Bitbucket:

I have to authenticate every time I push to the repo. I've added my SSH key to the account, but I assume there's some additional configuration, such as how github has you add values for github.user and github.token to your global git config, but I can't find any such info for what those variables need to be for Bitbucket - assuming that's the reason I'm still continually prompted for a password.

Has anyone sorted this out yet or got SSH authentication working with Git & Bitbucket?



Make sure to use git@bitbucket.org:{username}/{reponame} instead of any https links bitbucket might give you.

I was able to upload an existing repo I had by:

1) Uploading my SSH Public Key at https://bitbucket.org/account/ (i.e. the contents of ~/.ssh/id_rsa.pub) 2) Create a blank repo at Bitbucket 3) Adding a remote (git remote add bitbucket git@bitbucket.org:{username}/{reponame}.git) 4) Pushing to bitbucket (git push bitbucket master)

The most important parts were adding my SSH Public Key, and making sure to use git@bitbucket.org:{username}/{reponame}.git instead of any https links you might see on bitbucket.


Ah, thanks so much! That makes perfect sense. I was using the https link that bigbucket provided initially.


ack thanks! I wonder why these info are not widely written around the web...


The github.user and github.token settings aren't used by git, by the way - they're used by any tools you might use that can use the github API. They aren't required for pushing or pulling over ssh.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: