DEV Community

Cover image for Support for password authentication was removed. Please use a personal access token instead.
Shafia Rahman Chowdhury
Shafia Rahman Chowdhury

Posted on

Support for password authentication was removed. Please use a personal access token instead.

While pushing some codes into your GitHub repository you may encounter the error "Support for password authentication was removed. Please use a personal access token instead." as shown in the picture below

Image description

Starting from August 13, 2021, GitHub has stopped accepting passwords for verifying Git operations on user accounts. Instead, you will need to use a Personal Access Token (PAT) in place of your password. To add a PAT to your system, you can follow the steps outlined below.

Step 1: Go to your GitHub Account and then go to the Settings(click on your profile account and you will find the Settings option there)

Step 2: Scroll down and at the sidebar you will see the Developer Settings option. Click on Developer Settings.

Image description

Step 3: Click on Personal access tokens and then click on Tokens (classic)

Image description

Step 4: Click on Generate new token and then click on Generate new token (classic)

Image description

Step 5: Fill-up the Note field, select No expiration and then select the checkboxes as shown in the picture

Image description

Image description

Step 6: Click on the Generate token. Your token is created!.

Image description

Step 7: Copy the token and paste it on the password field of the terminal.

Image description

Your code got successfully pushed into your repository!

Image description

However, after applying your token you may face this error.

Image description

Visit this blog(https://dev.to/shafia/common-github-issues-beginners-may-face-29bb) and follow the steps given in Error 3 Solution 1.

Happy coding!

Top comments (14)

Collapse
 
petenet001 profile image
petenet001

thank you so much, good help

Collapse
 
emercab profile image
Emerson Cabrera

Great! It is just what I was needing. Thank you.

Collapse
 
andriussiup profile image
Andrius Siupinys

Thanks

Collapse
 
dl1bia7 profile image
JVS

Thanks for sharing!

Collapse
 
matthewkhakis profile image
matthewkhakis

Thanks! it worked :)

Collapse
 
hungndmath profile image
hungndmath

Beautiful sharing.

Collapse
 
vansh_agarwal_95e7a39f722 profile image
Vansh agarwal

i am really thankful for this !!!!!

Collapse
 
wandaazhar profile image
Wanda Azhar

Thank you so much

Collapse
 
nurulislamrimon profile image
Nurul Islam Rimon

Thank for such a beautiful solution

Collapse
 
rkokomo profile image
Koba

Thanks!

Collapse
 
techie232 profile image
Techie@232

Thanks bro!

Collapse
 
florencehuzhe profile image
Florence

Thanks a lot! that helped a lot!

Collapse
 
sahilbisht0602 profile image
Sahil Bisht

Thanks

Collapse
 
donijoao profile image
João Pedro Doni

man, you save my school work, thank you very much <3