github: permission denied (publickey)

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
peter_b
Chatterbox
Posts: 374
Joined: Tue Nov 12, 2013 2:05 am

github: permission denied (publickey)

Post by peter_b »

I've had several reasons for the following error:
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.
1. SSH config (~/.ssh/config) had no public key set.
2. Remote-URL wasn't pointing to any SSH config entry name.
(eg "github.com" instead of just "github" - as labelled in ~/.ssh/config)
3. SSH key was not assigned to any user who had access to that repository (eg: my own account)
Post Reply