Push error in Eclipse, cannot connect, not authorized

If set my Two-factor authentication on GitHub, I will encounter this error in Eclipse if still using username + password.

error.png

So there is no choice, go to my GitHub, and then Settings—-Personal access tokens—-Generate new token to get my personal access token, when trying to push again, set items as the figure below:

right.png


OK, I’m on my way…