I’m having trouble pushing changes to my GitHub repo. Every time I try to push to the main branch, I get an authentication failure.
The error looks like this:
Password for 'https://[email protected]':
remote: Invalid username or password.
fatal: Authentication failed for 'https://[email protected]/myuser/MyProject.git/'
I’ve set up SSH keys and they seem to work fine. When I test with ssh -T [email protected] I get a success message saying I’m authenticated properly.
Hi myuser! You've successfully authenticated, but GitHub does not provide shell access.
This shows my SSH connection is working (myuser is my GitHub username). I followed all the GitHub setup guides and tried solutions from various forums but still can’t push. Any ideas what might be causing this issue?