SSH Public key denied on "git clone" command SSH Public key denied on "git clone" command heroku heroku

SSH Public key denied on "git clone" command


Answering a very old thread, here, but I'm on Cygwin and just had to do this to start work with my newly created site on phpfog.com

First, I ran this in cygwin:

exec ssh-agent bashssh-add ~/.ssh/private-key-name

I then received:

Identity added: /home/scott/.ssh/private-key-name (/home/scott/.ssh/private-key-name)


Copy the public key on your computer i.e., ~/.ssh/id_rsa.pub (open it with notepad)

Paste this key in the "Add SSH key" section in your github account.

Note: to generate a ssh key if doesnt already exist, use ssh-keygen -t rsa


Can you try adding the private key using ssh-add?