Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Bitbucket User Being Asked for Password Each Time They Git Pull/Push
We are just getting acclimated to our new Bitbucket/DO workflow and we ran into an issue that we don’t know if we resolved in the best manner possible. I would like to run that scenario by you guys to see if anyone has a better recommendation for our workflow.
We created a Repo inside of our Team account
We then added a non-team member (remote developer) to the repo as an Admin
We then created the new user for the remote developer on the Droplet with the following permissions: newuser ALL=(ALL:ALL) ALL
We wanted the developer to be able to easily push and pull his changes to the live server but we ran into a continuous problem with him pulling the changes from Bitbucket. We eventually came to the solution of running the git pull command like so:
(it was previously asking him to enter our main team member’s Bitbucket password)
The developer was expressing to us that it was quite aggravating to work like this as it was asking him for his username and password each time he went to push or pull his changes from Bitbucket.
I’m assuming there is a solution to this problem by using SSH Keys but I’m a bit fuzzy as to how to utilize the SSH Key in this scenario. Will he just need update his Bitbucket account with his SSH Key or is this something that needs to be done on DO? Maybe both?
Sorry for the long winded explanation but I thought maybe there was a better way to accomplish this from the get-go. Any tips or how-to articles are very much welcomed.
Thanks! - Daniel
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×