macOS keeps asking for my ssh password every time I use git

macOS keeps asking for my ssh password every time I use git

On macOS Sierra and above, you will need to input your password every time your ssh key is accessed. This can be quite annoying if you need to do it multiple times every hour, and, if your password is complex. You can let macOS handle the password for you, by following the guide below.

Edit ~/.ssh/config and add the following to the end of the file:

Host *
    UseKeychain yes

You can also use the script below to do it for you

Source: superuser.com/questions/1127067/macos-keeps..