How to add ssh key to gpg-agent in Windows 10?

Luis Marsano luis.marsano at
Mon May 2 04:21:37 CEST 2016

I'm using GnuPG 2.1.11 from the *Simple installer for GnuPG modern* Windows
binary release on
After muddling about a great deal, I found gpg-agent can be enabled as an
ssh-agent for PuTTY by

   - adding enable-putty-support to *gpg-agent.conf*
   - gpg --expert --edit-key key-id
   and adding a subkey with authentication flag
   - gpg --list-secret-keys --with-keygrip --with-colons key-id | sed -ne
   '/:a:/,/^grp/ {/^grp/p;}' | cut -d: -f10 >>~/.gnupg/sshcontrol
   to get keygrip and add it to *sshcontrol*
   - gpg --export-ssh-key key-id | ssh user at host 'cat -
   - reloading gpg-agent

Is there a simpler way to add the keygrip to *sshcontrol*?
The above enables us to use gpg-created keys for ssh sessions.
The manual
also discusses using *ssh-add* to add ssh keys to gpg-agent.
PuTTY, however, doesn't include *ssh-add* and cygwin/msys2 *ssh-add* doesn't
seem compatible with native gpg-agent.
How do we add ssh keys to gpg-agent in Windows?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/attachments/20160501/cac74caf/attachment.html>

More information about the Gnupg-users mailing list