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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

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

1 vote
翟玉泰 I'm New Here Nov 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

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 @翟玉泰 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 @翟玉泰 
  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
Posted in Sourcetree

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

3,230 views 19 18
Join discussion

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