Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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