Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Authentication Error - "remote: Invalid username or password"

Mahesh Karshanbhai Gajera November 17, 2020

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

1 vote
Jet November 19, 2020

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

Mahesh Karshanbhai Gajera November 19, 2020

Token as a password also resolved my issue.

Thank you for support :)

Like antje.myriknas likes this
0 votes
Daniel Eads
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 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

Brannan Nunnally November 20, 2020

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
AUG Leaders

Atlassian Community Events