Unable to clone Git

Unable to clone Git

9 posts / 0 new
Last post
kelvion79's picture
kelvion79
Points: 0
Unable to clone Git

Hi I am unable to clone my site using GIT

Kelvins-MacBook-Pro:Sites kelvin$ sudo git clone kelvion79@srv-2100.devcloud.hosting.acquia.com:kelvion79.git
Cloning into 'kelvion79'...
Permission denied (publickey).
fatal: Could not read from remote repository.

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

I have tried to SSH into my account via ssh
kelvion79@srv-2100.devcloud.hosting.acquia.com and am able to do so.

Also recently I am unable to load my site via ( in the past I was able to)
Acquia Dev Desktop Client. It now just hangs during exporting . Also is there a progress bar I can see?

May I know how to resolve this ?

Regards,
Kelvin

Status: 
Duplicate
jason.stanbery's picture
Jason Stanbery
Points: 0

Did this work for you previously, and nothing has changed?

Let's start at the beginning:
You've added your public key on your workflow page - and it matches your private key that is on your local machine?

gaurav@technostica.com's picture
gaurav
Points: 0

Did it work for you? I have same issue.

mikep@upspringmedia.com's picture
mikep
Points: 0

Same issue. If we can SSH in, but cannot git clone, I do not see the problem being with the keys.

tom@wheelercreek.com's picture
tom
Points: 1

Looks similar to this: https://forums.acquia.com/acquia-products-and-services/acquia-cloud/unab...

That's basically what I did and I'm able to SSH in now. Git clone is almost working, but now I'm getting this message:

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:
...[snip]
Connection abandoned.
fatal: Could not read from remote repository.

Any ideas on how to get my computer to trust the server? It's not asking me if I want to accept it, when I use SSH it just goes right in. I read somewhere that I can manually add the server's public key to my trusted Hosts file, but how do I find that? (this is using git bash on Win 7)

Status Change: 
Duplicate
admin's picture
Acquia Forums
Points: 0

This post has a duplicate thread which has the provided answer. Please visit the linked page.

tom@wheelercreek.com's picture
tom
Points: 1

You mean the link I posted? Yes I've been there... that helped me get past the "Permission denied (publickey)" error, but now I have the new problem which I describe in my post above.

tom@wheelercreek.com's picture
tom
Points: 1

I figured out my problem, during the process of trying to get my git bash & Putty working with SSH, I had tried setting my GIT_SSH environment variable to use plink.exe.. I just needed to delete that environment variable and Putty works now. GitBash's default Open SSH private and public keys works fine.

Your documentation directed me to generate my SSH keys with PuttyGen, but that ended up being a wild goose chase. Basically this is what worked for me: https://help.github.com/articles/generating-ssh-keys

admin's picture
Acquia Forums
Points: 0

This post has a duplicate thread which has the provided answer. Please visit the linked page.