Skip to content

Instantly share code, notes, and snippets.

@jlandure
Last active August 2, 2017 08:46
Show Gist options
  • Select an option

  • Save jlandure/8f0f3c47d752ef7393732b5deda00c5c to your computer and use it in GitHub Desktop.

Select an option

Save jlandure/8f0f3c47d752ef7393732b5deda00c5c to your computer and use it in GitHub Desktop.
ssh-add keychain macos with passphrase
#generate your key
ssh-keygen
# add to the macos keychain
ssh-add -K ~/.ssh/[your-private-key]
#create a file to indicate to use the macos keychain '.ssh/config'
Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment