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 trialMukul Gupta
8,760 PointsI am unable to run git push -u origin master.
I get the following error:
remote: Permission toMukulGupta1/my_test_repository.git denied to ramanadv. fatal: unable to access 'https://github.com/MukulGupta1/my_test_repository.git/': The requested URL returned error: 403
Where ramanadv is other-user.
git config user.name
returns Mukul Gupta (my username)
4 Answers
Mukul Gupta
8,760 PointsFixed it. Needed to delete some previous keys from the Keychain Access application in OS X. Thanks
David Tonge
Courses Plus Student 45,640 PointsDid you set up the ssh keys on github?
Mukul Gupta
8,760 PointsHugo, I opened the Keychain Access program on OS X - searched for github and deleted all the keys. Then I set up new ssh keys on github
Eric Thompson
9,858 PointsEveryone watching this in July 2016: Save yourself a HUGE headache by setting up the ssh key over at Github and DO NOT use the https:// option. The ssh setup is a somewhat lengthy process, but it will get you past the Error 403/fatal HTTP request failed. I literally spent HOURS trying to get this to work.
NOTE: Once you set up your ssh key and add it to Github, you need to change your origin link back in your terminal using this:
git remote set-url origin git://new.url.here
Replace the "new.url.here" with your personal ssh link shown for your project at Github. Next you should see "The authenticity of host 'github.com (ip address here)' can't be establish
RSA key fingerprint is..."
Once you enter your ssh passphrase, you will be good to go and should see "Branch master set up to track remote branch master from origin." to verify this.
Refresh your page at Github and you will see the same screen that Tommy is seeing at the very end of the video.
Hope this helps! I could not find the answer I needed to resolve the 403 Error/fatal HTTP request error I was getting. I am using the Treehouse supplied console.
Hugo Amorim
Courses Plus Student 23,205 PointsHugo Amorim
Courses Plus Student 23,205 Pointscan you explain how you fix this? Thanks much appreciated.