I had to fight a little with GPG Suite (Mac) and forwarding gpg-agent to a Ubuntu 16.04 target. This post describes what ended up working for me.
- macOS Sierra 10.12.6
- GPG Suite 2017.1 (2002)
- gpg2 installed on Ubuntu 16.04 (sudo apt-get install gpg2 -y)
Add this lines:
Add these lines:
RemoteForward /home/[user]/.gnupg/S.gpg-agent /Users/[user]/.gnupg/S.gpg-agent.remote ExitOnForwardFailure Yes
gpgconf --kill gpg-agent gpgconf --launch gpg-agent
Add this line:
sudo systemctl restart sshd
This article helped a lot while I was troubleshooting.