On mercredi 15 juin 2016 12:53:23 CEST Andre Heinecke wrote: > I'm using agent-forwarding through socat for that reason: > > Here is an example how I connect to <myserver>. The last command is > executed after ssh on the server. > > (while true; do socat TCP-LISTEN:16668,bind=127.0.0.1 > UNIX-CONNECT:/home/aheinecke/.gnupg/S.gpg-agent.extra; done) & ssh > -R16668:localhost:16668 <myserver> > (while true; do socat > UNIX-LISTEN:$HOME/.gnupg/S.gpg-agent,unlink-close,unlink-early > TCP4:localhost:16668; done) &
So, I lost a few more hours on this, and still no go. $ (while true; do socat TCP-LISTEN:16668,bind=127.0.0.1 UNIX-CONNECT: $HOME/.gnupg/S.gpg-agent-extra; done) & (my local config has "-extra", while yours has ".extra") $ ssh -R16668:localhost:16668 [email protected] scripty@rosetta ~ $ (while true; do socat UNIX-LISTEN:$HOME/.gnupg/S.gpg- agent,unlink-close,unlink-early TCP4:localhost:16668; done) & All good until here, but: scripty@rosetta ~ $ gpg-connect-agent gpg-connect-agent: error sending standard options: Unknown error code scripty@rosetta ~ $ gpg2 --output /dev/null --sign -u 0x09B06E10 /dev/null gpg: skipped "0x09B06E10": No secret key Sigh. The server has OpenSSH_6.0p1, gpg (GnuPG) 2.0.19 and socat 1.7.1.3-1.4. -- David Faure, [email protected], http://www.davidfaure.fr Working on KDE Frameworks 5
