UseKeychain
To save SSH keys in macOS Sierra keychain add this to ~/.ssh/config
:
Host *
AddKeysToAgent yes
UseKeychain yes
🔗Keychain changes
Prior to macOS Sierra, ssh would present a dialog asking for your passphrase and would offer the option to store it into the keychain. This UI was deprecated some time ago and has been removed.
Instead, a new UseKeychain option was introduced in macOS Sierra allowing users to specify whether they would like for the passphrase to be stored in the keychain. This option was enabled by default on macOS Sierra, which caused all passphrases to be stored in the keychain.
This was not the intended default behavior, so this has been changed in macOS 10.12.2. To store passphrases in the keychain, set this option in your ssh configuration file:
UseKeychain yes
https://developer.apple.com/library/content/technotes/tn2449/_index.html