Skip to content

Instantly share code, notes, and snippets.

@hfknight
Last active December 12, 2018 21:10
Show Gist options
  • Save hfknight/c68ac5e781e63420a5d3023f5da327ae to your computer and use it in GitHub Desktop.
Save hfknight/c68ac5e781e63420a5d3023f5da327ae to your computer and use it in GitHub Desktop.
Fix Git Error: "Permission denied (publickey)" after updating mac os (Mojave)

Fix Git Error: "Permission denied (publickey)" after updating mac os (Mojave)

  1. in terminal, type xcode-select --install
  2. in terminal, go to .ssh/, type ssh-keygen -t rsa -C "your_email@example.com". This will create both id_rsa and id_rsa.pub files
  3. copy id_rsa.pub content to github project > add new SSH key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment