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 trialAndrea Sanchez
Courses Plus Student 2,132 PointsError when pushing to Git
I followed along and got this message when trying to push to Git:
unknown78ca39b70464:treebook dresanchez$ git remote add origin git@github.com:AndreaBG/treebook.git unknown78ca39b70464:treebook dresanchez$ git push -u origin master Warning: Permanently added the RSA host key for IP address '204.232.175.90' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists. unknown78ca39b70464:treebook dresanchez$ git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
Andrea Sanchez
Courses Plus Student 2,132 PointsI will re-try, but it did not ask me for password or user info before giving me that error message, will give it a go again.
thanks!
Justin Carlson
12,755 PointsThis page may help you find out if you have just saved it in your user profile:
are you on linux/windows/mac?
Andrea Sanchez
Courses Plus Student 2,132 PointsI am on a mac
2 Answers
Jason Seifer
Treehouse Guest TeacherHave you added your ssh key to GitHub?
Andrea Sanchez
Courses Plus Student 2,132 PointsNo I had not, but figure out that is what is was, Thanks!
Justin Carlson
12,755 PointsJustin Carlson
12,755 PointsLooks like you have saved credentials for the github server with incorrect user/pass. can you double check/re enter and try again?