In theory, enabling SSH support on the gpg-agent
is as simple as passing the --enable-ssh-support
option to the gpg-agent
when initialized. However, this is tricky in Ubuntu (and probably many other Linux systems) because the gpg-agent
is
constantly relaunched. If we're on a machine we don't want to modify too much (as in disabling the classic ssh-agent
), this
is even trickier.
Here's how I solved it:
-
First, ensure the SmartCard Daemon is installed in the system (
scdaemon
) -
Enable SSH support for the
gpg-agent
every time. While this is a system modification, it's a mild one and easy to revert.