Re: [PATCH 0/2] Prompting for the GPG password within Emacs

Subject: Re: [PATCH 0/2] Prompting for the GPG password within Emacs

Date: Mon, 08 Jul 2013 13:19:38 +0100

To: Daniel Kahn Gillmor

Cc: notmuch@notmuchmail.org

From: Neil Roberts


Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:

> Hm, interesting.  I bet we could figure out a way to do this with
> existing OpenSSH without needing to patch anything, as long as you're
> willing to use helper utilities like socat.

Heh, yeah, I also experimented with going down this route. I wrote an
overly complicated C program¹ to manage launching the two SSH sessions.
That also only handles one session, but yeah I guess you could get the
program to relaunch the SSH session after the first connection dies.

I came across some other people who were suggesting² to make socat wrap
the Unix socket in a TCP socket and then tunnel that over SSH. I guess
that would be a simple way to support multiple sessions. However it
seems a bit dodgy to open a port because you can't restrict the access
by user. In my case though that wouldn't really be a problem because I'm
the only one with an account on both machines.

Regards,
- Neil

1. http://git.busydoingnothing.co.uk/cgit/gpgssh.git/tree/gpgssh.c
2. http://is.gd/Fy0C4g
---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Thread: