Can't push commits to Github from Eclipse

By xngo on September 3, 2021

Issue

I was trying to push my commits to Github from Eclipse but it failed. Eclipse keeps re-showing the password popup even though I carefully enter the correct password. It was working fine before. Eclipse > Push to master > Password

Solution

Since Eclipse doesn't work, I tried with the command line: git push. And, I got the following message:

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.

So, I logged in Github.com and go to Settings > Developer settings > Personal access tokens to create a Personal access token. When Eclipse asks for the password, I enter the Personal access token.

Github > Settings > Developer settings > Personal access tokens

Github - Personal access tokens

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.