[Gpg4win-users-en] GPG-Agent-Forwarding from Windows to Linux: How to specify the local socket?

Johannes Kastl kastl at b1-systems.de
Fri Sep 16 14:23:57 CEST 2022


Hi all,

please excuse the slightly-off-topic question, but has someone managed to 
forward the gpg-agent from a Windows machine (using the OpenSSH implementation) 
to a Linux box?

I can specify the forwarding in the .ssh/config on my windows machine using the 
RemoteForward option.
But either I get a non-working connection once I try to use the agent on the 
remote box, or I cannot establish a connection due to "Bad configuration option" 
errors.

I think I should specify it like this:

> Host foo
>     RemoteForward /socket/on/remote/machine C:\User\foo\AppData\Local\gnupg\S.gpg-agent.extra

But apparently the "C:" part is misinterpreted as a host:port combination and 
not as a local socket name. I tried various combinations of slash, backslash, 
%d, ~/.., %USERPROFILE%, ${%USERPROFILE%} and things like that. But either I 
cannot connect (bad configuration option) or the socket is never found when I 
try to use it.
Windows paths seem to work for other options ("IdentityFile C:\Users\foo\..." 
works), but for this one I think the colon causes issues.

The manpage does not help (or I have missed it).

Did anyone manage to do this?

Kind Regards,
Johannes

-- 
Johannes Kastl
Linux Consultant & Trainer
Tel.: +49 (0) 151 2372 5802
Mail: kastl at b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg
http://www.b1-systems.de
GF: Ralph Dehner
Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://lists.wald.intevation.org/pipermail/gpg4win-users-en/attachments/20220916/6e3c849c/attachment.sig>


More information about the Gpg4win-users-en mailing list