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

Development Tools Git Basics Working With Remote Repositories GitHub

Charles Strawn
Charles Strawn
3,462 Points

Not able to push my repository to Github. Server key issue.

Hello. I am not able to push my repository to Github with the following command: "git push -u origin master" I ran the git remote add command with no issues.

Here is the error message I get from the console: "Warning: Permanently added the RSA host key for IP address '192.30.252.131' to known hosts. Permission denied (publickey). fatal: The remote end hung up unexpectedly"

Has anyone run into this on this lesson?

If so, can you help?

2 Answers

Charles Strawn
Charles Strawn
3,462 Points

Hello Jeff.

My apologies. I should have mentioned that I am using the Treehouse console, not my own.

I don't have any problem from my actual computer, just in the Treehouse console. Since that appears to be an issue, I wonder why it wasn't mentioned in the lesson.

I appreciate your answer.

Jeff Jacobson-Swartfager
Jeff Jacobson-Swartfager
15,419 Points

Ah, ha! Got it. In that case, perhaps the answer on this forum topic will help: github not working with treehouse console.

Charles Strawn
Charles Strawn
3,462 Points

That did it. Thanks Jeff!

Jeff Jacobson-Swartfager
Jeff Jacobson-Swartfager
15,419 Points

Make sure you've added your public key to Github. You'll need to generate an SSH key and then add it to the account.