macOS (Sierra) not saving ssh keys to agent

For some reason, with Sierra, the nice behavior of ssh automatically adding new ssh keys to the ssh-agent stopped working. The simple fix (for me) was to edit /etc/ssh/ssh_config (the global config) and add a line:

AddKeysToAgent yes