I'm on Mac OS X 10.9.5 and ssh agent is working just fine for two of my keys (include the main one, ~/.ssh/id_rsa). However, for my AWS key, it asks me for the passphase every time. I'm unsure why. I'd like for it to cache the AWS key until reboot like it does with the others.
When I run
ssh-add -L I see id_rsa and the AWS key in the list. For some reason it only asks me for the id_rsa passphrase once after a reboot, but it asks me for the AWS passphrase every time I use it.
Edit: I've tried decrypting the key and then encrypting it again under a different name and the same thing happens.
I'm using ssh to connect to the server and I have the host configured in my
Host aws HostName ec2-xxx-xxx-xxx-xxx.us-west-1.compute.amazonaws.com User ubuntu IdentityFile /Users/brent/.ssh/test2.pem IdentitiesOnly yes
Then the command I use to connect is
I still get a ssh-agent window that pops up every time to get the key passphrase.