Forward gpg-agent to container

Ben McGinnes ben at
Fri Jun 8 01:26:26 CEST 2018

On Tue, Jun 05, 2018 at 05:17:10PM -0400, Phil Pennock wrote:
> Shell 1:
> $ docker-machine ssh default -R /var/run/pdp.gnupg:$HOME/.gnupg/S.gpg-agent.extra
> [ leave this window open, this is your login on the VM; when this
>   closes, you stop forwarding GnuPG's socket ]

A suggestion: for those parts of this which need to be kept open, like
this one, I recommend using autossh in place of ssh.  That way even if
the link is flakey and drops out, it'll reconnect for you.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <>

More information about the Gnupg-users mailing list