From http://support.gpgtools.org/discussions/problems/28634-gpg-agent-stops-working-
after-osx-upgrade-to-yosemite:
Situation: I'm using the gpg-tools on OSX for yubikey-ssh-authentification. After
Upgrade to OSX 10.10 Yosemite, gpg-agent seems to stop working after some time.
Setup:
Installed latest gpg-tools from this website.
Added "enable-ssh-support" to .gnupg/gpg-agent.conf and restarted mac
export SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh
Connect to an ssh-server.
Problem:
After some time (~1-2 Hours maybe, not sure), the agent isn't working anymore. It's
still listed as active in the processlist, but everything related to my yubikey fails
(no error, just nothing happens, no segfaults).
Connecting to a ssh-server results in nothing, as well as gpg --card-status
Patch: https://github.com/GPGTools/MacGPG2/blob/dev/Formula/Patches/gnupg2/pcsc-
wrapper.patch