@sir I prefer to use the gpg-agent for ssh keys, and it does this automatically. As a bonus you get to use the ssh-keys associated with your gpg keys too (eg, I have a YubiKey set-up for encryption/signing) _and_ you get to use the gpg-agent's systemd user service integration. :D