How to forward GNUPG GPG Agent via SSH
I wanted to know how to use GPG keys securly in such a way like I already do with SSH keys: private key always kept on my local host while it is usable on remote hosts via SSH connection.
SSH client side
GPG Agent needs to be run. The agent is usually started on demand by gpg, gpgsm, gpgconf or gpg-connect-agent.
gpg-connect-agent /bye
The usual way to run the agent is from the ~/.xsession file: