Skip to content

Instantly share code, notes, and snippets.

@michael-harrison
Last active February 20, 2018 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-harrison/972aafddf9253b048a1c92fff00fcd9a to your computer and use it in GitHub Desktop.
Save michael-harrison/972aafddf9253b048a1c92fff00fcd9a to your computer and use it in GitHub Desktop.
OSX Sierra SSH Passphrase persistence

OSX Sierra SSH Passphrase persistence

NB: Most people use the defult SSH key ~/.ssh/id_rsa however you can create your own so change this as needed

  1. Add the following to ~/.ssh/config
Host *
  UseKeychain yes
  AddKeysToAgent yes
  IdentityFile ~/.ssh/id_rsa
  1. ssh-add -K ~/.ssh/id_rsa

Based on the following solution on stack overflow: https://stackoverflow.com/a/41492503/837191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment