Just had the same issue and solved it.
My issue was that I added the generated public ssh key to the repo itself through the ‘settings’ of that repo.
The solution was to delete the ssh key from the repo itself. Click on your account. Add the ssh key through ‘settings’ of your account.