You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Christopher M. Neill edited this page Feb 29, 2016
·
3 revisions
Permission denied (publickey)
issue is with your ssh keys
check which keys are in your agent with ssh-add -L
if none of those are keys you have with github you need to add it ssh-add ~/.ssh/id_rsa
run ssh-add -L and ensure what you added above is in the list
if doing these steps does not help, you might have an expired auth token
run ssh-add -D && ssh-add ~/.ssh/id_rsa ~/.ssh/*prime.pem && ssh-add -a.
Other issues:
might be a problem with your host key cache, ~/.ssh/known_hosts. Simply remove that file and it will re-cache any host keys that may have changed (eg, a server was migrated to a new image).