I've been pushing my repos just fine, then enabled two factor authentication and can no longer push.
I created an SSH key and added it to my GitHub account, then created a config file in ~/.ssh/config
and added the following.
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
Host github.com
HostName github.com
User [myusername]
IdentitiesOnly yes
Yet when I push a repo it's asking for my GitHub username and password, and after entering them then tells me I don't have authorization.
remote: Invalid username or password.
I even tried using my auth backup code for the password, but no good.
Since I'm on macOS Catalina I tried
eval "$(ssh-agent -s)"
ssh-add -l -E md5
Which resulted in the "This agent has no identities"
message. So of course I did the following
ssh-add ~/.ssh/id_rsa
And tried it again and it's still the same. I'm basically stuck in a loop of nothing working and don't know what to do!