Issue
Today I tried pushing to my github repository and got this error:
ERROR: Permission to victor126/simple-eth-wallet.git denied to deploy key
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I then tried this on every single one of my repositories, and all gave me this error, which was really weird because yesterday I was able to successfully push. I then checked if my ssh key was in my ssh agent, and if the corresponding key was added on my github account. Both checked out.
What was even weirder was I then attempted to ssh to github with ssh -T [email protected]
and this gave me:
Hi Abduboriy1/Networking! You've successfully authenticated, but GitHub does not provide shell access.
This is really weird because Abduboriy1/Networking is NOT my username. It's my friends username, but only the first part. We worked on a project together about a month ago.
Does anyone know what is going on here, and why it returns his username and not mine? How can I fix this problem?
Solution
Git set the default key to your friend's, check ~/.ssh/config and set the 'IdentityFile' to your own ssh key
Answered By - JoJi's Bizarre Adventure Answer Checked By - Dawn Plyler (WPSolving Volunteer)