git remote: Invalid username or password. fatal: Authentication failed - ubuntu

loucat dev

I'm getting this error from the terminal (ubuntu), although if I write ssh -T [email protected] I appear to be authenticated. I've just added a new ssh key, and I have a global config file. I've already tried different solutions found online, with no luck.

Can anyone help please?

I've tried

`git push -u origin master` or `git push -u origin main`

and this is the output of git remote:

$ git remote -v
origin  https://github.com/loucat-dev/github-test.git (fetch)
origin  https://github.com/loucat-dev/github-test.git (push)
origin  [email protected]:loucat-dev/github-test.git (push)
VonC

"invalid username or password" is not an error you would find with an SSH URL, but rather with an HTTPS one, as I detail here.

Try:

cd /path/to/local/repo
git remote set-url [email protected]/<me>/<myrepo>

Then you can add, commit and try to push, to validate that the authentication does work when writing back to your remote GitHub repository.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

remote: Invalid username or password, fatal: Authentication failed for

From Dev

remote: Invalid username or password. fatal: Authentication failed for

From Dev

FATAL: password authentication failed for user "postgres" Ubuntu v20.10

From Java

Sourcetree remote: Invalid username or password

From Dev

Authentication failed on the git remote

From Dev

Git server with username and password authentication

From Dev

fatal: Authentication failed Git Bash

From Dev

Fatal: authentication failed for [GIT client]

From Dev

FATAL: password authentication failed for user "postgres"

From Dev

Git clone with username password authentication in one go

From Dev

Git Push - Username and password in the remote url

From Dev

Git on Yosemite keeps asking for remote username and password

From Dev

PostgreSQL SSPI authentication - FATAL: 2801: password authentication failed for user "xxx"

From Dev

Storing encrypted username/password for authentication on remote website without OAuth

From Java

FATAL: password authentication failed for user "postgres" (postgresql 11 with pgAdmin 4)

From Dev

psql: FATAL: password authentication failed for user windows 8

From Dev

PG::ConnectionBad: FATAL: password authentication failed for user "alphauser"

From Dev

Redshift connection issue: FATAL: password authentication failed for user

From Dev

fatal: Full write to remote helper failed: Invalid argument Done

From Dev

fatal: Full write to remote helper failed: Invalid argument Done

From Dev

Username and Password for LDAP Authentication

From Dev

Cloud9 git push -> fatal: Authentication failed

From Dev

Bitbucket in HTTPS : git push outputs an fatal: Authentication failed

From Dev

VS Team Services & Git for Windows error "fatal: Authentication failed ..."

From Java

GitHub: invalid username or password

From Dev

git ls-remote throws fatal: HTTP request failed

From Dev

Storing username and password in Git

From Java

How do I provide a username and password when running "git clone [email protected]"?

From Dev

Client/server username/password authentication

Related Related

  1. 1

    remote: Invalid username or password, fatal: Authentication failed for

  2. 2

    remote: Invalid username or password. fatal: Authentication failed for

  3. 3

    FATAL: password authentication failed for user "postgres" Ubuntu v20.10

  4. 4

    Sourcetree remote: Invalid username or password

  5. 5

    Authentication failed on the git remote

  6. 6

    Git server with username and password authentication

  7. 7

    fatal: Authentication failed Git Bash

  8. 8

    Fatal: authentication failed for [GIT client]

  9. 9

    FATAL: password authentication failed for user "postgres"

  10. 10

    Git clone with username password authentication in one go

  11. 11

    Git Push - Username and password in the remote url

  12. 12

    Git on Yosemite keeps asking for remote username and password

  13. 13

    PostgreSQL SSPI authentication - FATAL: 2801: password authentication failed for user "xxx"

  14. 14

    Storing encrypted username/password for authentication on remote website without OAuth

  15. 15

    FATAL: password authentication failed for user "postgres" (postgresql 11 with pgAdmin 4)

  16. 16

    psql: FATAL: password authentication failed for user windows 8

  17. 17

    PG::ConnectionBad: FATAL: password authentication failed for user "alphauser"

  18. 18

    Redshift connection issue: FATAL: password authentication failed for user

  19. 19

    fatal: Full write to remote helper failed: Invalid argument Done

  20. 20

    fatal: Full write to remote helper failed: Invalid argument Done

  21. 21

    Username and Password for LDAP Authentication

  22. 22

    Cloud9 git push -> fatal: Authentication failed

  23. 23

    Bitbucket in HTTPS : git push outputs an fatal: Authentication failed

  24. 24

    VS Team Services & Git for Windows error "fatal: Authentication failed ..."

  25. 25

    GitHub: invalid username or password

  26. 26

    git ls-remote throws fatal: HTTP request failed

  27. 27

    Storing username and password in Git

  28. 28

    How do I provide a username and password when running "git clone [email protected]"?

  29. 29

    Client/server username/password authentication

HotTag

Archive