I\'m on Mac Snow Leopard and I just installed git
.
I just tried
git clone git@thechaw.com:cakebook.git
but that gives
I was struggling with same problem that's what i did and i was able clone the repo. I followed these procedure for iMac.
First Step : Checking if we already have the public SSH key.
ls -al ~/.ssh
to see if existing SSH keys are present:Check the directory listing to see if you already have a public SSH key.Default public are one of the following d_dsa.pub,id_ecdsa.pub,id_ed25519.pub,id_rsa.pub
If you don't find then go to step 2 otherwise follow step 3
Step 2 : Generating public SSH key
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Generating public/private rsa key pair
. When it prompts to"Enter a file in which to save the key,"
press Enter. This accepts the default file location. When it prompts to Enter a file in which to save the key (/Users/you/.ssh/id_rsa): [Press enter]
Just press enter again.
At the prompt, type a secure passphrase.Enter passphrase (empty for no passphrase): [Type a passphrase]
press enter if you don't want to Enter same passphrase again: [Type passphrase again]
press enter againThis will generate id_rsa.pub
Step 3: Adding your SSH key to the ssh-agent
eval "$(ssh-agent -s)"
$ ssh-add -K ~/.ssh/id_rsa
Now copy the SSH key and also add it to you github account
pbcopy <
~/.ssh/id_rsa.pub
This will copy the file to your clipboard
Now open you github account Go to Settings > SSH and GPG keys > New SSH key Enter title and paste the key from clipboard and save it. Voila you're done.