I followed the documentation on GitHub to set up an SSH key for automatic authentication. The proof that I have set it up correctly is the test mentioned in the doc:
$ ssh -T git@github.com
Hi USERNAME! You've successfully authenticated, but GitHub does not provide shell access.
I am able to clone
repos from GitHub alright to my system. However, I am not able to push
anything (to reps where I can write). I get the following:
$ git push origin main
Username for 'https://github.com': USERNAME
Password for 'https://USERNAME@github.com':
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/dense-set/test_repo.git/'
I have tried entering my passphrase for the SSH key as well as my GitHub password, and the same fatal
error shows.
Question: How can I successfully push
?