Skip to content

ssh issues Permission denied (publickey)

Christopher M. Neill edited this page Feb 29, 2016 · 3 revisions
  1. Permission denied (publickey)

  2. issue is with your ssh keys

  3. check which keys are in your agent with ssh-add -L

  4. if none of those are keys you have with github you need to add it ssh-add ~/.ssh/id_rsa

  5. run ssh-add -L and ensure what you added above is in the list

  6. if doing these steps does not help, you might have an expired auth token

  7. run ssh-add -D && ssh-add ~/.ssh/id_rsa ~/.ssh/*prime.pem && ssh-add -a.

  8. Other issues:

  9. 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).

Clone this wiki locally