Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Building a MEAN Application Introduction to the MEAN Stack Building a MEAN App Overview

M K
M K
41 Points

Git error while cloning

Hello,

I was following your video tutorial and I got stuck when cloning the angualar repo. Same as you I have pasted the following command:

git clone git@github.com:treehouse/angular-basics.git .

I am using Windows 7 cmd in administration mode.

here's the output

Cloning into '.'... The authenticity of host 'github.com (192.30.252.129)' can't be RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARL Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'github.com,192.30.252.129' (RSA) to n hosts. Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. Deletion of directory '.' failed. Should I try again? (y/n) y

I am not very familiar with github so It's hard for me to find out if the issue is on my side or yours.

Best regards,

Nicholas

1 Answer

Hi Nicholas,

Take a look at this StackOverflow discussion.

The short version is that it's likely that you either a) don't have a SSH key on your computer or b) the SSH key you do have doesn't match what Github's looking for.

Make sure you've taken a look at Github's public key documentation which will walk you through the process.

Hope that helps!

M K
M K
41 Points

I have managed to clone repo successfully and the problem was caused by the lack of public keys.

Did on my own but if anybody need a starting point Cena Mayo's answer is good begining.