Git: Permission denied (publickey). fatal: Could not read from remote repository

AskYous

I've never cloned a private GitHub repository. So I followed GitHub's guide but it's still rejecting me. I have a Red Hat linux server on AWS. I did the following:

  1. Ran ssh-keygen -t rsa -b 4096 -C "< my github email address >".
  2. Ran eval "$(ssh-agent -s)".
  3. Ran ssh-add ~/.ssh/id_rsa.
  4. Ran cat ~/.ssh/id_rsa.pub (to get the value of the key).
  5. Added output of step 4 into here: https://github.com/settings/keys.
  6. Ran ssh -T [email protected] and it outputted this:

    Hi AskYous! You've successfully authenticated, but GitHub does not provide shell access.

  7. Ran sudo git clone [email protected]:AskYous/google-code-challange.git (a private repository I own). This is when I got the following error:

    Cloning into 'google-code-challange'... Permission denied (publickey). fatal: Could not read from remote repository.

    Please make sure you have the correct access rights and the repository exists.

  8. I checked GitHub and it acknowledges that the key has been used: enter image description here
AskYous

The problem was, and I don't know how this happened, is that the private key changed so this new key was not stored on GitHub. It changed somehow. Perhaps I ran the generation process twice.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Git: Permission denied (publickey) fatal - Could not read from remote repository. while cloning Git repository

From Dev

GitHub: Permission denied (publickey). fatal: Could not read from remote repository

From Dev

Permission denied (publickey). fatal: Could not read from remote repository

From Dev

Git Clone : Permission denied (publickey). fatal: Could not read from remote repository

From Dev

Error $ git pull --rebase Permission denied (publickey). fatal: Could not read from remote repository

From Dev

Git Clone : Permission denied (publickey). fatal: Could not read from remote repository

From Dev

Clone the repository from Codebase Permission denied (publickey). fatal: Could not read from remote repository

From Dev

Clone the repository from Codebase Permission denied (publickey). fatal: Could not read from remote repository

From Dev

can't pull changes from github - Permission denied (publickey). fatal: Could not read from remote repository

From Java

Heroku 'Permission denied (publickey) fatal: Could not read from remote repository' woes

From Dev

gitlab: Windows: How to use chmod and fix "Get Permission denied (publickey). fatal: Could not read from remote repository"

From Java

git: fatal: Could not read from remote repository

From Dev

Can't push my code to Heroku: Permission denied <public key> fatal: Could not read from remote repository

From Dev

git Connection abandoned, fatal: Could not read from remote repository

From Dev

CentOS: Git: "fatal: could not read from the remote repository"

From Java

Git push: "fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository."

From Dev

Permission denied (publickey). fatal: The remote end hung up unexpectedly for git pull

From Java

Can't git push to Bitbucket: Unauthorized - fatal: Could not read from remote repository

From Dev

Using GIT Bash, ERROR: Repository not found - fatal: Could not read from remote

From Dev

git clone: "remote: The namespace you were looking for could not be found." ... "fatal: Could not read from remote repository."

From Dev

Permission Denied (publickey)/fatal: The remote end hung up unexpectedly?

From Dev

Git Permission denied (publickey)

From Dev

git Permission denied (publickey)

From Dev

A strange "fatal: Could not read from remote repository." with crontab

From Dev

A strange "fatal: Could not read from remote repository." with crontab

From Dev

Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists

From Dev

git clone error. Read from socket failed: Connection reset by peer fatal: Could not read from remote repository

From Dev

BitBucket - Git - Permission denied (publickey)

From Dev

Ansible git Permission denied (publickey)

Related Related

  1. 1

    Git: Permission denied (publickey) fatal - Could not read from remote repository. while cloning Git repository

  2. 2

    GitHub: Permission denied (publickey). fatal: Could not read from remote repository

  3. 3

    Permission denied (publickey). fatal: Could not read from remote repository

  4. 4

    Git Clone : Permission denied (publickey). fatal: Could not read from remote repository

  5. 5

    Error $ git pull --rebase Permission denied (publickey). fatal: Could not read from remote repository

  6. 6

    Git Clone : Permission denied (publickey). fatal: Could not read from remote repository

  7. 7

    Clone the repository from Codebase Permission denied (publickey). fatal: Could not read from remote repository

  8. 8

    Clone the repository from Codebase Permission denied (publickey). fatal: Could not read from remote repository

  9. 9

    can't pull changes from github - Permission denied (publickey). fatal: Could not read from remote repository

  10. 10

    Heroku 'Permission denied (publickey) fatal: Could not read from remote repository' woes

  11. 11

    gitlab: Windows: How to use chmod and fix "Get Permission denied (publickey). fatal: Could not read from remote repository"

  12. 12

    git: fatal: Could not read from remote repository

  13. 13

    Can't push my code to Heroku: Permission denied <public key> fatal: Could not read from remote repository

  14. 14

    git Connection abandoned, fatal: Could not read from remote repository

  15. 15

    CentOS: Git: "fatal: could not read from the remote repository"

  16. 16

    Git push: "fatal 'origin' does not appear to be a git repository - fatal Could not read from remote repository."

  17. 17

    Permission denied (publickey). fatal: The remote end hung up unexpectedly for git pull

  18. 18

    Can't git push to Bitbucket: Unauthorized - fatal: Could not read from remote repository

  19. 19

    Using GIT Bash, ERROR: Repository not found - fatal: Could not read from remote

  20. 20

    git clone: "remote: The namespace you were looking for could not be found." ... "fatal: Could not read from remote repository."

  21. 21

    Permission Denied (publickey)/fatal: The remote end hung up unexpectedly?

  22. 22

    Git Permission denied (publickey)

  23. 23

    git Permission denied (publickey)

  24. 24

    A strange "fatal: Could not read from remote repository." with crontab

  25. 25

    A strange "fatal: Could not read from remote repository." with crontab

  26. 26

    Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists

  27. 27

    git clone error. Read from socket failed: Connection reset by peer fatal: Could not read from remote repository

  28. 28

    BitBucket - Git - Permission denied (publickey)

  29. 29

    Ansible git Permission denied (publickey)

HotTag

Archive