Works on OSx Mojave!
- Install latest Macgpg: https://gpgtools.org/
- Create yourself a gpg key with auth subkey (https://www.linode.com/docs/security/authentication/gpg-key-for-ssh-authentication/)
- Run
gpg -K --with-keygrip
and put the keyid of the auth key in~/.gnupg/sshcontrol
- Install the files below to these locations:
/usr/local/bin/start-gpg-agent.sh
~/Library/LaunchAgents/gpg.agent.daemon.plist