Pageant proxy to gpg-agent

NIIBE Yutaka gniibe at
Mon Jan 21 08:20:39 CET 2013

On 2013-01-21 at 12:56 +0900, NIIBE Yutaka wrote:
> With this script, we can use authentication key on Gnuk Token for
> Putty.

The script didn't use the channel of SSH-agent for GPG-Agent, since it
doesn't work for me.  Currently, it connect the original channel of
GPG-Agent, and communicates with "KEYINFO", "READKEY", "SIGKEY",
"SETHASH", and "PKSIGN" commands.

This is a bug report SSH-agent channel doesn't work on Windows.

(1) fopen with "wx" seems not to be supported on Windows

At first, I didn't have the file "sshcontrol".  It failed at 

Then, I created an empty file.

(2) When I sent a request of SSH2 REQUEST IDENTITIES, it failed.  The
    output of log of GPG-Agent is like this:

2013-01-18 14:56:55 gpg-agent[3440] ssh request handler for request_identities (11) ready
2013-01-18 14:56:55 gpg-agent[3440] sending ssh response of length 311
2013-01-18 14:56:55 gpg-agent[3440] sending ssh error response

I don't know what's happened here.

Perhaps, nobody uses SSH-agent feature.

			*	*	*

IIUC, OpenSSH on Windows uses Unix Socket Emulation on Cygwin.  I
looked through the code of Cygwin, and I realized that the way to
implement Unix Socket Emulation is mostly same as GnuPG, but differs a
bit.  I think that it is good to run GnuPG's SSH-agent feature as
compatible as OpenSSH on Windows (plus Pageant IPC).

More information about the Gnupg-devel mailing list