[macOS Sierra] Solution to Stop Showing 'Enter passphrase for key' Every Time
I’ll show you how to configure macOS Sierra to stop displaying Enter passphrase for key ‘/Users/yourname/.ssh/id_rsa’: every time after upgrading to macOS Sierra.
For example, when you git pull from GitHub, the Terminal displays the message Enter passphrase for key every time.
$ git pull
Your branch is up-to-date with 'origin/master'.
Enter passphrase for key '/Users/yourname/.ssh/id_rsa':
This problem can be solved by adding the following configuration to ~/.ssh/config:
Host *
UseKeychain yes
AddKeysToAgent yes
macOS Sierra probably changed the default behavior to be more secure, requiring developers to handle this individually.
That’s all from the Gemba.