Stop Bitbucket prompting for password in git
In some cases after adding public ssh keys for your Bitbucket account, Bitbucket could still fail with authentication and as a result it would prompt for your bitbucket password every time you pull or push. Generally, in my case the problem was in https authentication, probably in your .git/config file you’ll have something like this:
So, here some solutions for this problem :
- Consider changing remote url in .git/config In this way authentication still works through https and it uses your uploaded public ssh key from ~/.ssh/id_rsa.pub
- Another solution is to store plain password in ~/.netrc file, add following lines with your <login> and <password> :