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

Lucas Ackerknecht
615 PointsPush to Github: Permission Denied (publickey)
Error: Permission denied (publickey). fatal: The remote end hung up unexpectedly My-MacBook-Pro:treebook lma58$ git push -u origin master
This happened when I tried to give Jason access to the github file in a later video. How can I make it stop?
Best, Luke
2 Answers

James Barnett
39,199 PointsThe easy way to clone treebook is to use:
git clone https://github.com/jasonseifer/treebook.git

Lucas Ackerknecht
615 PointsMore specifically, at min 3:47 I got the below error. But, according to the video, I needed to input my pw.
Lukes-MacBook-Pro:treebook lma58$ git remote add origin git@github.com:username/treebook.git
Lukes-MacBook-Pro:treebook lma58$ git push -u origin master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Lukes-MacBook-Pro:treebook lma58$

James Barnett
39,199 PointsTry this git remote add origin https://github.com/user/repo.git
You now need to know your github username &the name of the repository you created.
I highly recommend you check out github help pages, here's one on how to fork a repo.
Might also want to check out the try.github.com course.
Lucas Ackerknecht
615 PointsLucas Ackerknecht
615 PointsThanks, that worked for jason's.
However, under the Push to GitHub video, when I try to push my treebook files for the first time, I still get this. I think my GitHub treebook repository remains blank.
Lukes-MacBook-Pro:treebook lma58$ git push -u origin master Permission denied (publickey). fatal: The remote end hung up unexpectedly Lukes-MacBook-Pro:treebook lma58$