GPG 2.1.3 SSH Agent Socket Moved

less than 1 minute read

Why’d my gnupg ssh agent break?

Apparently gnupg-2.1.3 changed the default ssh-agent socket from $HOME/gnupg/S.gpg-agent.ssh to $XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh where XDG_RUNTIME_DIR=/run/user/1000. After realizing this (which doesn’t appear in the gpg-agent man page) I was on my way with an update to $SSH_AUTH_SOCK to reflect the new path.

My Arch Linux system upgraded to gnupg-2.1.3 when this happened. I quickly poked around the repository and this commit seems related.

Turns out I’m not crazy, it did silently move.