Last Updated: July 13, 2017
· jaymabazza

No password git push on bitbucket

This command will generate new private and publik key pair.

$> ssh-keygen -t rsa 

If you already have one, just open ~/.ssh/ (location depends on OS)

$> cat ~/.ssh/

copy all the contents. open It should be under Manage Account > SSH Keys


click on Add Key, then paste your public key details.

remember to use the "SSH" version before cloning. or if you're already using HTTPS, just edit git/config then replace the URL.

$> vim .git/config

3 Responses
Add your response

I learned git about a month ago and have typed my password a few hundred times since. Thanks a ton for this. I should have googled a while ago I guess.

over 1 year ago ·

no worries chris. happy gitting :)

over 1 year ago ·

Clear, simple and effective. Thanks!

over 1 year ago ·