<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Faizan Raza</title>
    <description>The latest articles on DEV Community by Faizan Raza (@faizeraza).</description>
    <link>https://dev.to/faizeraza</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1900673%2Fe84cb860-e86d-4e21-a285-f2700bc945c5.jpeg</url>
      <title>DEV Community: Faizan Raza</title>
      <link>https://dev.to/faizeraza</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/faizeraza"/>
    <language>en</language>
    <item>
      <title>remote: Support for password authentication was removed on August 13, 2021. fatal: Authentication failed</title>
      <dc:creator>Faizan Raza</dc:creator>
      <pubDate>Thu, 08 Aug 2024 11:02:29 +0000</pubDate>
      <link>https://dev.to/faizeraza/remote-support-for-password-authentication-was-removed-on-august-13-2021fatal-authentication-failed-178e</link>
      <guid>https://dev.to/faizeraza/remote-support-for-password-authentication-was-removed-on-august-13-2021fatal-authentication-failed-178e</guid>
      <description>&lt;h3&gt;
  
  
  While Pushing Your code at GitHub or cloning any repository you may encounter this error.
&lt;/h3&gt;

&lt;p&gt;There two ways to resolve this issue:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt; &lt;em&gt;through personal access token.&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt; &lt;em&gt;through GCM git_configuration_manager.&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;We will focus on GCM git_configuration_manager in this post.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1.Install Pass &lt;br&gt;
   &lt;code&gt;sudo apt install pass&lt;/code&gt;&lt;br&gt;
2.Generate GPG key with command :&lt;br&gt;
   &lt;code&gt;gpg --full-generate-key&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk0cxiubqiqkm1kbmj3xk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk0cxiubqiqkm1kbmj3xk.png" alt="Image description" width="800" height="676"&gt;&lt;/a&gt;  &lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: Above command will ask some details keep things default&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;3.Linux distributions require additional configuration to use GCM and for this config we did above two steps.&lt;br&gt;
   you can find that &lt;a href="https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/credstores.md" rel="noopener noreferrer"&gt;here&lt;/a&gt; .&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git config --global credential.credentialStore gpg&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;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:&lt;br&gt;
   &lt;code&gt;pass init &amp;lt;gpg-id&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Note: You will get gpg id at output of step2.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;5.Download latest .deb of &lt;a href="https://github.com/git-ecosystem/git-credential-manager/releases/tag/v2.5.1" rel="noopener noreferrer"&gt;GCM&lt;/a&gt; .&lt;/p&gt;

&lt;p&gt;6.&lt;a href="https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/install.md#linux" rel="noopener noreferrer"&gt;Install GCM&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;7.run bellow command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git-credential-manager configure&lt;/code&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;if you were cloning :&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;code&gt;git clone &amp;lt;link&amp;gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;if pushing&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git push orogin&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;it will pop up a window asking for authorization from GitHub&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8vhwuzdthn2ox8k97ojm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8vhwuzdthn2ox8k97ojm.png" alt="Image description" width="560" height="431"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>git</category>
      <category>linux</category>
      <category>gcm</category>
    </item>
  </channel>
</rss>
