Last active
August 2, 2017 08:46
-
-
Save jlandure/8f0f3c47d752ef7393732b5deda00c5c to your computer and use it in GitHub Desktop.
ssh-add keychain macos with passphrase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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