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

chrisan

I'm trying to clone a repo in either cygwin or GitBash (msysgit) using Pageant for ssh keys. I get the following error:

$ git clone [email protected]:username/your-project.git
Cloning into 'your-project'...
The server's host key is not cached in the registry. You
have no guarantee that the server is the computer you
think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 2048 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
Connection abandoned.
fatal: Could not read from remote repository.

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

Yet when trying to debug your ssh connection with gitub it says it works

$ ssh -T [email protected]
Warning: Permanently added the RSA host key for IP address '192.30.252.129' to the list of known hosts.
Hi username! You've successfully authenticated, but GitHub does not provide shell access.

And $ ssh-add -l show the same finger print that is listed in my github profile

So the problem is not the one described here: https://help.github.com/articles/error-permission-denied-publickey

chrisan

I found the solution on this page http://www.bitsandpix.com/entry/git-setup-msysgit-install-with-pageantplink-from-putty/ but re-creating here in hopes it saves someone else time in the future as that page did not show up in google for me easily.

It turns out in order to fully use pageant with cygwin/msysgit you first need to accept the finger print of the server with putty itself.

Simply launch putty and connect to host [email protected] or [email protected] and it will store that fingerprint. All you will see is a brief flash of a putty session and then it closes.

Now back in cygwin or msysgit you should be able to clone.

Alternatively, if you do not wish to use Pageant for your keys you must unset the environment variable GIT_SSH which points to plink.exe and cygwin / msysgit will accept the server fingerprint on their own (but you no longer will get to use Pageant). This was discovered at http://sourceforge.net/p/forge/site-support/2959/#204c

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: fatal: Could not read from remote repository

From Dev

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

From Dev

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

From Dev

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

From Java

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

From Java

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

From Dev

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

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

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

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

From Dev

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

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

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

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 Java

git with IntelliJ IDEA: Could not read from remote repository

From Dev

git push heroku: Could not read from remote repository

From Dev

Failed with error: Could not read from remote repository || git

From Dev

conq: repository does not exist. fatal: Could not read from remote repository

From Dev

fatal: Could not read from remote repository. When I push my local repo to remote server

From Dev

can't pull changes from github - Permission denied (publickey). 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 Java

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

From Dev

GitLab ssh to hostname with local user causes "fatal: Could not read from remote repository"

From Dev

Rails 4 + Capistrano 3 : fatal: Could not read from remote repository while deploying

Related Related

  1. 1

    git: fatal: Could not read from remote repository

  2. 2

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

  3. 3

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

  4. 4

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

  5. 5

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

  6. 6

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

  7. 7

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

  8. 8

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

  9. 9

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

  10. 10

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

  11. 11

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

  12. 12

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

  13. 13

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

  14. 14

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

  15. 15

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

  16. 16

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

  17. 17

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

  18. 18

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

  19. 19

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

  20. 20

    git with IntelliJ IDEA: Could not read from remote repository

  21. 21

    git push heroku: Could not read from remote repository

  22. 22

    Failed with error: Could not read from remote repository || git

  23. 23

    conq: repository does not exist. fatal: Could not read from remote repository

  24. 24

    fatal: Could not read from remote repository. When I push my local repo to remote server

  25. 25

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

  26. 26

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

  27. 27

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

  28. 28

    GitLab ssh to hostname with local user causes "fatal: Could not read from remote repository"

  29. 29

    Rails 4 + Capistrano 3 : fatal: Could not read from remote repository while deploying

HotTag

Archive