I am trying to ssh into github. I have generated an ssh key in my .ssh directory on my computer. Then I added it that key into the ssh keys section of github. But when I type ssh -T git@github.com it successfully authenticates into a differnt github account with an old ssh key that I no longer have in my .ssh folder. I don’t understand how it does this. It does say agent admitted to failure to sign using the key before it successfully ssh’s into the wrong github account.
Share
This was resolved by running
ssh-addbefore trying to ssh in.