When I run git push -u origin master
which is a brand new repository, I get this error:
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
I can not push any project to github, even the fresh one just created. It was all working fine. Then yesterday I setup digital ocean deployment to one of my project, which involved ssh key generate etc. Now the digital ocean part and the project that is pushed to github is working fine but I can not push any changes to github on any of my other projects..
So this question has nothing to do with digital ocean, adding ssh key to github repo etc. All I want is push projects to github.. simple test projects but I can not. I get the above error.
The same question has been asked before but they are about pulling a project from github or projects that requires to have ssh key in the github repository.
But in my case, I do not need to add ssh key in the repository, they are just regular projects. I just want to push to github as I could do before..
Any solutions? Thanks!