Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CocoaPods keeps asking for id_rsa passphrase after OS update

Tags:

ssh

cocoapods

I recently updated my computer to macOS 10.12.2. Since the update, whenever it tries to read my id_rsa, it asks for my file's passphrase. This happens when connecting to my remote machines via SSH, but also when installing or updating my CocoaPods, which is where I first noticed this behaviour. It works after putting in my passphrase, but I'd rather have it remember it.

Any idea where I can change it back or what might have happened?

Thanks!

like image 948
flohei Avatar asked Dec 10 '22 13:12

flohei


1 Answers

It seems there is some change in behaviour or bug introduced with the latest macOS update. I was able to resolve this by creating the file ~/.ssh/config with contents:

Host *
   AddKeysToAgent yes
   UseKeychain yes
   IdentityFile ~/.ssh/id_rsa

Source: Original answer at apple.stackexchange.com

like image 174
Brendon Avatar answered Dec 21 '22 18:12

Brendon