Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

authentication was removed. Please use a personal access token instead

Error when trying to connect to GitHub:

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
fatal: unable to access 'https://github.com/ershubhamyadav/dream365web.git/': The requested URL returned error: 403
like image 841
shubham yadav Avatar asked Aug 15 '21 05:08

shubham yadav


People also ask

How do I use a personal access token instead?

From your home page, open user settings , and then select Personal access tokens. Select + New Token. Name your token, select the organization where you want to use the token, and then set your token to automatically expire after a set number of days.

How do I fix support for password authentication was removed August 13 2021 Please use a personal access token?

Since we cannot use account passwords when authenticating git operations, we can fix this issue by generating the PAT(Personal Access Token) in GitHub and using the PAT as authentication for Git operations.

How do I use a personal access token instead of GitHub?

Under your GitHub user profile (not the repository profile), click the “Settings” link. Scroll down and click the “Developer Settings” link. Click the GitHub “Personal access tokens” link. Click the “Generate new token” link and provide your password again if required.


1 Answers

  1. Create an access token following this: https://docs.github.com/en/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token
  2. Change the URL of the repo to: https://<access token>@github.com/userName/repo.git

If on jenkins, set the credentials to none.

like image 73
Gil Stal Avatar answered Sep 22 '22 19:09

Gil Stal