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,414 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,414 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.