Failure to push to github when other projects succeed.

Answered

On a Push I get this message:

"Push failed Git@github.com: Permission denied (publickey). Could not read from remote repository. Please make sure you have the correct access rights and the repository exists."

Nothing I have found on the internet on this has helped.

4 comments
Comment actions Permalink

Hello Axeddie

There is a guide by GitHub how to configure SSH:
https://docs.github.com/en/github/authenticating-to-github/troubleshooting-ssh/error-permission-denied-publickey

IDE relies on command-line git and once you setup git to work properly in Termina/Cmd.exe then IDE would be able to run git operations as well.
Please let us know if you have any questions left.

0
Comment actions Permalink

I've upgraded to 2021.2.1 from 2019 now.  My commit and push works on 2019 still but now I get that error on 2021.  I've tried the stiff on the link you gave me again and it still does the same.  My 2021 looks to be configured just like my 2019.  I do have both installed.

0
Comment actions Permalink

Axeddie

Do you have same git executables specified in both versions?
Do you have same remotes specified under Git | Manage remotes?

0
Comment actions Permalink

I finally got it.  In 2019 version I was able to use a token.  In 2021 ver I had to give github it my id_rsd to make the push work.

0

Please sign in to leave a comment.