If you have upgraded to macOS 10.12.2 and use SSH (e.g. with git), you'll probably notice that macOS no longer seem to store your keys and their passphrases with ssh-agent. Here's a solution from @mjtsai:
Add this to your .ssh/config file to:
Host *
UseKeychain yes
AddKeysToAgent yes
.
.