1

I'm having trouble to connect to Bitbucket from Visual Studio Code and I don't know why it's happening or how to fix it. Everything was working just fine until today. After trying a Git pull from the Visual Studio terminal I get:

remote: Invalid username or password
fatal: Authentication failed for "git url"

The thing is that if I use the Ubuntu terminal, everything works just fine. I can do fetch, pull, push, and pull request. It's just from the Visual Studio Code terminal that gives that error.

I've tried many of the solutions I found on the web, like trying to set back the URL with git remote set-url origin to no avail. I uninstalled Visual Studio Code and removed all settings and preferences, installed it again, but it is still not working.

Just to clarify as it's mentioned in many of the answers I found, I'm not using two-factor authentication, I'm on Ubuntu, and never changed user or password in Bitbucket.

What stumps me is that it works correctly from the terminal, just not from Visual Studio Code. I can keep working but it's really annoying.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
leogar07
  • 121
  • 7
  • A candidate for the canonical question is *[Fix for "fatal: Authentication failed for"](https://stackoverflow.com/questions/69979522/)* (despite the unspecific title). – Peter Mortensen Nov 22 '21 at 01:57

1 Answers1

1

Apparently it’s a bug in Visual Studio Code 1.62.2 that will be fixed in 1.62.3.

More information is here.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
leogar07
  • 121
  • 7