Git push problem

I set up the two-factor authentication today since Github now required a personal access token for git operations. But, I’m still unable to push and seeing this message and don’t know why. What should I do?

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
remote: Please see Token authentication requirements for Git operations | The GitHub Blog for more information.
fatal: unable to access ‘GitHub - JIB3377/fed-challenge: FED Design Challenge’: The requested URL returned error: 403

I solve this with SSHkeys

Look this from (I use the first approach).

In ~/.ssh/config , add:

 IdentityFile ~/.ssh/Your_RSA_For_Github

If the config file is new, you might need to do chmod 600 ~/.ssh/config

And look this from GitHub Docs, I follow all steps, the push request me the passphrase of the ssh-key, and push success.

1 Like

Thank you. It worked!

1 Like