---
title: ""Support for password authentication removed" for GitHub. How to Generate Personal Access Token?"
url: "https://magecomp.com/blog/generate-personal-access-token-github/"
date: "2021-09-13T15:34:07+00:00"
modified: "2025-02-17T07:03:35+00:00"
author:
  name: "Dhiren Vasoya"
  url: "https://magecomp.com/"
categories:
  - "How To"
  - "Magento 2"
word_count: 406
reading_time: "3 min read"
summary: "Hello Magento Friends,"
description: "Password Authentication is no longer supported by GitHub and you need a personal access token to use git. Learn How to Generate Personal Access Token? "
keywords: "How To, Magento 2"
language: "en"
schema_type: "Article"
related_posts:
  - title: "Magento 2: How to Override Template using Helper Function"
    url: "https://magecomp.com/blog/magento-2-override-template-using-helper-function/"
  - title: "How to Add Website Total Visitor on Admin Dashboard in Magento 2?"
    url: "https://magecomp.com/blog/add-website-total-visitor-on-admin-dashboard-magento-2/"
  - title: "How to Send Magento 2 Shipping Mail to Customers Using Order ID Programmatically"
    url: "https://magecomp.com/blog/send-magento-2-shipping-mail-to-customers-using-order-id-programmatically/"
---

# "Support for password authentication removed" for GitHub. How to Generate Personal Access Token?

_Published: September 13, 2021_  
_Author: Dhiren Vasoya_  

![Support for password authentication removed for GitHub How to Generate Personal Access Token](https://magecomp.com/blog/wp-content/uploads/2021/09/Support-for-password-authentication-removed-for-GitHub-How-to-Generate-Personal-Access-Token-1024x512.webp)

**Hello Magento Friends,**

Did you also receive the following, fatal: Authentication Failed error while trying git push or pull?
[![password error](https://magecomp.com/blog/wp-content/uploads/2021/09/passwords-error.png)](https://magecomp.com/blog/wp-content/uploads/2021/09/passwords-error.png)

The fatal: Authentication Failed error is shown when you are accessing GitHub with a password instead of a personal access token.
Move ahead with this blog to know Why Authentication Failed error occurs and How to fix it.
[![](https://magecomp.com/blog/wp-content/uploads/2022/05/Mobile-App.png)](https://magecomp.com/magento-2-mobile-app-builder)

## GitHub removed support for Password Authentication:
Github has removed the support for Password Authentication from August 13, 2021.
The password authentication support has been eliminated because it is easy for people to crack the passwords. A personal access token can reduce the damage.
Now GitHub will not allow if you try to use git by username and password. Instead, you need to use a personal access token to access git.
In the future when you try to use Git operations like push or pull, it will prompt you to enter your username and password. Enter your GitHub Username but for the password field, you need to generate a personal access token and enter it in the password field. Working with the command line, may not receive an indication for the successful password entry. Just click Enter after pasting the personal access token.
[![hyva theme development](https://magecomp.com/blog/wp-content/uploads/2025/02/hyva-theme-development-CTA-6.webp)](https://magecomp.com/services/hyva-theme-development/)

Now the question is, how you can generate your Personal Access Token. Let’s head on to the steps to Generate Personal Access Tokens.
## How to Generate Personal Access Token?
**Step 1:** Open GitHub from [**here**](https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsettings%2Ftokens) and log in.
**Step 2:** Choose **Setting** from the menu.
**Step 3:** Now click on **Developer Settings**

[![developer settings](https://magecomp.com/blog/wp-content/uploads/2021/09/developer-settings.png)](https://magecomp.com/blog/wp-content/uploads/2021/09/developer-settings.png)

**Step 4:** Next, choose **Personal access tokens**

[![personal access tokens](https://magecomp.com/blog/wp-content/uploads/2021/09/personal-access-tokens.png)](https://magecomp.com/blog/wp-content/uploads/2021/09/personal-access-tokens.png)

**Step 5:** Hit the **Generate new token** button.
[![generate new token](https://magecomp.com/blog/wp-content/uploads/2021/09/generate-new-token.png)](https://magecomp.com/blog/wp-content/uploads/2021/09/generate-new-token.png)

**Step 6:** Then, fill in the necessary information like **Note, Expiration, Select Scopes**.
[![details](https://magecomp.com/blog/wp-content/uploads/2021/09/details.png)](https://magecomp.com/blog/wp-content/uploads/2021/09/details.png)

At last click on **Generate Token** button
[![generate token](https://magecomp.com/blog/wp-content/uploads/2021/09/generate-token.png)](https://magecomp.com/blog/wp-content/uploads/2021/09/generate-token.png)

[![Hire Magento Programmer](https://magecomp.com/blog/wp-content/uploads/2025/02/Hire-Magento-Programmer-CTA-2.webp)](https://magecomp.com/services/hire-magento-programmer/)

**Step 7:** A new token has been generated successfully. The generated token can be used to access git with username and token.
[![token generated](https://magecomp.com/blog/wp-content/uploads/2021/09/token-generated.png)](https://magecomp.com/blog/wp-content/uploads/2021/09/token-generated.png)

You need to run the below code before push or pull until you’re no longer prompted.
```
git remote set-url origin https://<githubtoken>@github.com/<username>/<repositoryname>.git
```

or

```
git remote set-url origin https://<token>@github.com/<username>/<repo>
```

## [![Magento version upgrade](https://magecomp.com/blog/wp-content/uploads/2025/02/Magento-2-Version-Upgrade-CTA-2.webp)](https://magecomp.com/services/magento-upgrade-services/)

## Conclusion:
Hence, this way you can solve the “Support for password authentication removed” GitHub Error by Generating Personal Access Token. Know more about [**GitHub and its Code Scanning Security**](https://magecomp.com/blog/githubs-code-scanning-security/).
If you face any difficulty contact me via the comment part. Share and Let your friends gain knowledge about this and easily solve GitHub Authentication Error.
**Happy Reading!**

[![](https://magecomp.com/blog/wp-content/uploads/2022/05/Mobile-App.png)](https://magecomp.com/magento-2-mobile-app-builder)


---

_View the original post at: [https://magecomp.com/blog/generate-personal-access-token-github/](https://magecomp.com/blog/generate-personal-access-token-github/)_  
_Served as markdown by [Third Audience](https://github.com/third-audience) v3.5.3_  
_Generated: 2026-08-03 21:00:13 UTC_  
