gpg-agent forwarding over SSH, the remote SSH server needs to enable "StreamLocalBindUnlink yes" in the global /etc/ssh/sshd_config. It may happen that this file is not adjustable by the user. The wrapper 'gssh' detects the correct socket and enables gpg-agent forwarding when the user explicit wants to forward the gpg-agent. See more: https://wiki.gnupg.org/AgentForwarding and The code was written by Callan Bryant: https://github.com/naggie/dotfiles thanks for sharing under MIT License.