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

Andrea Sanchez
PLUS
Andrea Sanchez
Courses Plus Student 2,132 Points

Error 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.

Justin Carlson
Justin Carlson
12,755 Points

Looks like you have saved credentials for the github server with incorrect user/pass. can you double check/re enter and try again?

Andrea Sanchez
Andrea Sanchez
Courses Plus Student 2,132 Points

I 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
Justin Carlson
12,755 Points

This page may help you find out if you have just saved it in your user profile:

http://stackoverflow.com/questions/5343068/is-there-a-way-to-skip-password-typing-when-using-https-github

are you on linux/windows/mac?

2 Answers