Gpg | Alt255 Blog

December 17, 2017

Forwarding GPG over SSH

Here’s a guide to forwarding GPG over SSH. This is helpful to not only assist with remote GPG operations, but will also work to forward SSH credentials which were loaded via gpg-agent. Prerequisites With modern versions of GPG (eg GnuPG 2.1), the gpg-agent will automatically create sockets in $HOME/.gnupg: $ ls -l $HOME/.gnupg/S.gpg-agent* srwx------ 1 jburke staff 0 Dec 17 10:22 /Users/jburke/.gnupg/S.gpg-agent= srwx------ 1 jburke staff 0 Dec 17 10:22 /Users/jburke/. ... Read more