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 Treebook Using Terminal: Permission Denied (Publickey)

The Video: http://teamtreehouse.com/library/programming-2/build-a-simple-version-of-facebook/frontend-development/cloning-the-project

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
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
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
STAFF
Jason Seifer
Treehouse Guest Teacher

That'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.

I'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.

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey 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
James Barnett
39,199 Points

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

I appreciate all the help, thanks for posting that link!

James Barnett
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.