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

Ruby

cloning git to my local device

Hey, so I want to clone my application on git to my local device, (I launched the site from this device, but I changed directories, if that means anything) and I get this error

Ellos-MacBook-Pro:Projects ellos$ git clone git@github.com:ellos/treebook.git
Cloning into treebook...
The authenticity of host 'github.com (201.97.223.239)' can't be established.
RSA key fingerprint is 16:27:ac:a5:72:28:2d:86:63:1b:53:4d:eb:df:a6:52.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,201.97.223.239' (RSA) to the list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Ellos-MacBook-Pro:Projects ellos$ git clone git@github.com:ellos/treebook.git
Cloning into treebook...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Ellos-MacBook-Pro:Projects ellos$ 

3 Answers

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

@Walker most probably you haven't uploaded your public key to github. See this link: https://help.github.com/articles/error-permission-denied-publickey

In the video Jim had already setup his git with an SSH key.

While you can do that by following the instructions in the link provided by @Amit, that's the hard way :tm:

It should also be noted that github now recommends the HTTPS method of cloning a repository instead the SSH method.

An easier way to clone treebook is to use:

git clone https://github.com/jasonseifer/treebook.git

If you are curious about for more details, this has been previously covered in another thread on this forum.

Thanks a lot guys, with your support I got it up and running! thanks a ton.