macOS Sierra で brew updateできなかった話
brew update
しようとすると
Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
と言われた。秘密鍵は正しいのに。
問題はこれ
macOS Sierra のSSH接続で、秘密鍵へのパスを覚えてくれない問題 - Qiita
秘密鍵のパスワードを毎回求められるようになったけど、brew update
の際には途中でパスの入力を求めずにエラーを吐いてしまう
解決策はリンク先にあるように.ssh/config
に
Host * UseKeychain yes AddKeysToAgent yes
みたいなの書く