Last Updated: February 25, 2016
·
1.556K
· gpakosz

Adding an SSH private key to the Mac keychain

To add a private key to the system keychain, in a terminal:

# /usr/bin/ssh-add -K ~/.ssh/private-key

Pay attention to launch Apple's ssh-add in /usr/bin in case you upgraded OpenSSH with MacPorts or Homebrew.