Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Connecting to Bitbucket with command line git (Using account with oauth and 2FA)

I cannot find at all any information on how I can connect my account for this.

 

I'm doing remote development on an embedded system and compiling on the system due to headaches attempting to get cross-compiling to work. I cannot figure out how to have the git repo on the device push to bitbucket, as I have no password for the account and it uses 2FA. My best guess is that I'd have to use the API somehow but I couldn't find anything telling me how to actually get an API key (creating a token doesn't seem to do it) nor how to set up git to authenticate using that.

1 answer

1 accepted

1 vote
Answer accepted
Caroline R Atlassian Team Dec 16, 2021

Hi, @Ethan Allred! Welcome to the community! 

In this case, you can either create an App Password or an SSH key to authenticate to the remote Bitbucket repositories.

In order to create an App Password, you can follow the next steps:

  1. From your avatar in the bottom left, click Personal Settings;

  2. Click App passwords under Access management;

  3. Click Create app password;

  4. Give the app password a name related to the application that will use the password;

  5. Select the specific access and permissions you want this application password to have;

  6. Copy the generated password and either record or paste it into the application you want to give access to. 

  7. The password is only displayed this one time.

If you would like to read more about App Passwords you can access this documentation: App passwords.

In case you would like to create an SSH key, the following documentation has a very good explanation on how to create and add it to Bitbucket:

Please let me know if you need any help with this process, I will be happy to assist you. 

Kind regards,
Caroline

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

101 views 2 4
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