NB: Most people use the defult SSH key ~/.ssh/id_rsa
however you can create your own so change this as needed
- Add the following to
~/.ssh/config
Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa
ssh-add -K ~/.ssh/id_rsa
Based on the following solution on stack overflow: https://stackoverflow.com/a/41492503/837191