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 trialEphraim Smith
11,930 PointsPermission Denied
I made it through the Intro to Git course and the majority of Git Basics course without issue. Now I am unable to push to my own repo and presented with the following message:
'git@github.com: Permission denied (publickey). fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.'
I've deleted my cached Git creds in Keychain Access (I'm on a Mac) but that doesn't solve the problem. Out of things to Google on this one.
Thanks guys..
Ephraim Smith
11,930 PointsHey Garren,
Thanks for replying. I have not set up keys. I did however change my username. That's why I cleared the GitHub credentials in the Keychain Access.
After posting last night, I re-established my remote using https and was asked for credentials. This seemed to work. Is there a way to prevent git auto-caching credentials?
Have a good day!
-E
Garren Ijames
945 PointsGarren Ijames
945 PointsHi Ephraim, do you have a public and private key generated? Somewhere inside of a hidden .ssh folder?