Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,862
Community Members
 
Community Events
165
Community Groups

Authentication Error - "remote: Invalid username or password"

Source tree asking credentials on every pull/push ,

upon entering credentials its says "Invalid username or password"

even though same credentials works in github.com

Please find below attached snapshot

Tried with new credentials but its not working  in source tree but same working in github

Also tried the solution provided in article : https://confluence.atlassian.com/bbkb/authentication-error-remote-invalid-username-or-password-942864127.html

not worked for me

 

Let me know if more details needed in this issue.

 

 

 

2 answers

I also encountered the same problem.

I solved it by using Token as the password.
I don't know if your problem is the same, but I hope this can help you.

 

The website i refer

https://community.atlassian.com/t5/Sourcetree-questions/quot-Failed-to-check-login-for-user-quot-when-trying-to-loggin/qaq-p/1533840

https://dotblogs.com.tw/CYLcode/2020/06/07/120134

Token as a password also resolved my issue.

Thank you for support :)

Like antje.myriknas likes this
0 votes
Daniel Eads Atlassian Team Nov 20, 2020

Hi, glad you were able to get it sorted @Jet and for posting the solution!

For a little more context, Github announced earlier this year that they'd be disabling passwords over basic auth - and the actual shutoff date (November 13, 2020) was last week.

There are two ways to change your account setup to work:

  1. Generate a Personal Access Token in Github and then paste that in place of your Github password in Sourcetree - as mentioned by @Jet 
  2. Switch from Basic authentication to OAuth in the Auth type dropdown in Sourcetree for your Github account. Then click the "Connect Account" button to authorize Sourcetree (this should open your browser and just be one click in Github if you're logged in on the web already)
    image.png

Cheers,
Daniel | Atlassian Support

Which version are you using because the Edit Hosting Account popup in Options->Authentication does NOT have the Connect Account button.
Connecting SourceTree to github is a nightmare. Nothing seems to get rid of the Invalid Username error after I had to update Git/SourceTree

Suggest an answer

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

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

60,412 views 127 26
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