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

Devon Latzen
Courses Plus Student 4,356 PointsCloning Treebook Using Terminal: Permission Denied (Publickey)
In this video, Jim teaches us how to clone a project from Github, using Terminal. When I enter the commands he uses (pasting in my own project SSH), Terminal starts to second-guess me and ask questions. Then it decides I'm not worthy:
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,207.97.227.239' (RSA) to the
list of known hosts.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Github hung up on me! Jim's got his git cusotmized so that he doesn't have to enter a password, which is fine. But I wasn't prompted for one. What should I do in order to make this a success?
Thanks!
9 Answers

James Barnett
39,199 Points@Jason - I think the issue is that people like to follow along with the exact commands you type in.
In fact you list that very command git clone git@github.com:jasonseifer/treebook.git
in your teacher's notes
When someone cuts & pastes the commands from your teacher's notes in that video, it will always throw an error, unless of course they use the https version of the clone command or setup an SSH key on github.

James Barnett
39,199 Points@Devon - Jim has already setup his git with an SSH key, that's not necessary for you to do that.
The easy way to clone treebook is to use:
git clone https://github.com/jasonseifer/treebook.git

Jason Seifer
Treehouse Guest TeacherThat's going to be the most updated version of treebook, not necessarily what you will want to be following along with. If you're working by yourself, it isn't necessary to clone the repository. It's only necessary to push up to GitHub before deploying to Heroku.

Devon Latzen
Courses Plus Student 4,356 PointsI'm really just trying to figure out how to clone projects in general. I've been following along with Treebook pretty well so far otherwise, no need to clone that project specifically. I just want the ability to clone. Git today, dinosaurs tomorrow.

James Barnett
39,199 Points@Devon - Github recommends using the https method.

Jason Seifer
Treehouse Guest TeacherHey James, great catch -- I'll update the notes section or at least provide a sensible starting point and repository for the app.
@Devon James's link is a great introduction as well. Thanks!

James Barnett
39,199 Points@Jason - Thanks, I love how responsive the teachers at Treehouse are to tweaking their course content.

Devon Latzen
Courses Plus Student 4,356 PointsI appreciate all the help, thanks for posting that link!

James Barnett
39,199 Points@Devon - You're quite welcome.
Let us know in this thread, if you have any more questions about cloning github repositories.