Store the key in the keychain

ssh-add -K ~/.ssh/[your-private-key]

Configure SSH to always use the keychain

nano ~/.ssh/config

 

Host *

  UseKeychain yes

  AddKeysToAgent yes

  IdentityFile ~/.ssh/id_rsa

Change ~/.ssh/id_rsa to the actual filename of your private key. If you have other private keys in your ~.ssh directory, also add an IdentityFile line for each of them. For example, I have one additional line that reads IdentityFile ~/.ssh/id_ed25519 for a 2nd private key.