每次 git push 都要输入 ssh/id_rsa 的密码了,以前只要输入一次就好了。 Apple 官方正解: echo -e "AddKeysToAgent yes\nUseKeychain yes" >> ~/.ssh/config