password required for user git on host github.com?

I've migrated to a new Mac, and SourceTree won't let me pull or push. It says "Password Required For user git on host github.com", but neither my Github or Atlassian passwords are accepted. I tried generating a new SSH key and uploading it to my github account, but that didn't work either. Any insight would be much appreciated!

2 answers

1 accepted

Update: I still have no idea what I'm doing, but adding this config file fixed the problem:

http://stackoverflow.com/questions/9960897/why-doesnt-my-ssh-key-work-for-connecting-to-github

I've never had to mess with that file, but I couldn't tell you why. Glad you found a solution!

This is along the lines of what worked for me too. However, I found the answer on github and that calmed my nerves for changing random config files. Apparently it's something for macOS Sierra 10.12.2 or later.

https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent/#adding-your-ssh-key-to-the-ssh-agent

@DonnaLea Thanks, that page worked for me! I had the issue after upgrading from MacOS EL Capitan to High Sierra. 

Your Atlassian password definitely won't work. GitHub is not an Atlassian product.

If you have 2-Factor Authentication enabled in GitHub, you can follow these instructions to use password authentication in SourceTree: https://confluence.atlassian.com/sourcetreekb/two-factor-authentication-2fa-with-github-in-sourcetree-402033499.html

We would need more information to debug the SSH issue, but you might try ideas from this post: http://stackoverflow.com/questions/20644173/unable-to-get-ssh-keys-working-between-sourcetree-and-github

Thanks so much! I followed the 2FA instructions to generate the token, and went to SourceTree settings > Edit Account and pasted it there (following https://clburlison.com/github-two-factor-authentication/), but I'm still getting the password required dialog (which doesn't accept the token either). Not sure I understand.

I'd seen the other post, but the Mac app doesn't have the "Tools" menu described in the first answer, and the "correct repo path" in the second answer is how I have things set up already.

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

274 views 0 3
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot