It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Git is prompting for bitbucket password instead of ssh key being used

I've verified that my ssh key is working buy using the command ssh -T git@bitbucket.org.

 

But when I go to push my code to bitbucket I'm prompted to put in my bitbucket password and if I do that it says to setup and ssh key because I have 2fa enabled. 

1 answer

1 accepted

2 votes
Answer accepted

Hi Zach,

Check your remote url and verify it isn't https

git remote -v

That was exactly the problem remote was set to https not ssh thank you!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

4,032 views 4 22
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you