Two steps:
- On the command line, just once, run this command to add the SSH key with its password to your Mac keychain:
ssh-add -K <path to key> # typically your key is something like: ~/.ssh/id_rsa- Tell your ssh config to use the keys from the keychain. In
~/.ssh/config, add: Host * UseKeyChain yes