DEV Community

Faizan Raza
Faizan Raza

Posted on

remote: Support for password authentication was removed on August 13, 2021. fatal: Authentication failed

While Pushing Your code at GitHub or cloning any repository you may encounter this error.

There two ways to resolve this issue:

  • through personal access token.
  • through GCM git_configuration_manager.

We will focus on GCM git_configuration_manager in this post.

1.Install Pass
sudo apt install pass
2.Generate GPG key with command :
gpg --full-generate-key

Image description

Note: Above command will ask some details keep things default

3.Linux distributions require additional configuration to use GCM and for this config we did above two steps.
you can find that here .

git config --global credential.credentialStore gpg

4.Before you can use this credential store, it must be initialized by the pass utility, which in-turn requires a valid GPG key pair. To initalize the store, run:
pass init <gpg-id>

Note: You will get gpg id at output of step2.

5.Download latest .deb of GCM .

6.Install GCM.

7.run bellow command:

git-credential-manager configure

  1. if you were cloning :

git clone <link>

if pushing

git push orogin

it will pop up a window asking for authorization from GitHub

Image description

Top comments (0)