I'm trying to follow these guides and answers
and anything else I can find to make this work:
- SSH from macOS to ubuntu 18.04
- Forward my local gpg agent so I can
gpg --decrypton the remote machine.
--imported my public key to the remote machine. The remote gpg reports the agent-socket to reside in
/run/user/1001/gnupg/S.gpg-agent, and the extra socket in
However, trying to
ssh -v -R /run/user/1001/gnupg/S.gpg-agent:/Users/rasmus/.gnupg/S.gpg-agent.extra -l rasmus <remote-host> warns that
Warning: remote port forwarding failed for listen path /run/user/1001/gnupg/S.gpg-agent
Which is presumably because systemd already owns the remote socket.
$ sudo journalctl -xe … Mar 11 15:06:21 pact-cube sshd: error: bind: Address already in use Mar 11 15:06:21 pact-cube sshd: error: unix_listener: cannot bind to path: /run/user/1001/gnupg/S.gpg-agent
What must I do to forward gpg agent from macOS to Ubuntu 18.04? The required GPG and SSH versions are used on both machines.