Git keeps asking me for my ssh key passphrase

stackoverflow.com

Do either:

  1. To add your private key to it:

ssh-add

This will ask you your passphrase just once, and then you should be allowed to push, provided that you uploaded the public key to Github.

  1. To add and save your key permanently on macOS:

ssh-add -K

This will persist it after you close and re-open it by storing it in user's keychain.

  1. To add and save your key permanently on Ubuntu (or equivalent):

ssh-add ~/.ssh/id_rsa