Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id BEF8F431FAF for ; Mon, 8 Jul 2013 03:55:36 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HyNCkR9Y0MfL for ; Mon, 8 Jul 2013 03:55:29 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) by olra.theworths.org (Postfix) with ESMTP id 3DED6431FAE for ; Mon, 8 Jul 2013 03:55:29 -0700 (PDT) Received: from [192.168.13.179] (lair.fifthhorseman.net [108.58.6.98]) by che.mayfirst.org (Postfix) with ESMTPSA id 06703F980; Mon, 8 Jul 2013 06:55:08 -0400 (EDT) Message-ID: <51DA9A8A.5070405@fifthhorseman.net> Date: Mon, 08 Jul 2013 06:55:06 -0400 From: Daniel Kahn Gillmor User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130630 Icedove/17.0.7 MIME-Version: 1.0 To: craven@gmx.net Subject: Re: [PATCH 0/2] Prompting for the GPG password within Emacs References: <1373195672-9338-1-git-send-email-neil@linux.intel.com> <51D9F4E6.1030504@fifthhorseman.net> <87wqp135yn.fsf@nexoid.at> In-Reply-To: <87wqp135yn.fsf@nexoid.at> X-Enigmail-Version: 1.5.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="----enig2PGGJTJOBVXGHXQGMFHTA" Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jul 2013 10:55:36 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2PGGJTJOBVXGHXQGMFHTA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/08/2013 02:45 AM, craven@gmx.net wrote: > This is what I have tried too :) My setup is as follows: > I run emacs in non-window mode (-nw) on a server machine under tmux (a > terminal multiplexer, like screen). I connect to this via SSH from > different machines (maybe even across multiple SSH logins). cool, this makes sense to me. on the remote server, do you have the pinentry-curses and gnupg-agent packages installed (these are the packages' names on debian and debian-derived systems -- they might be named something else on your distro). do you have use-agent (on its own line) in ~/.gnupg/gpg.conf on the serve= r? > I have the secret keys on the local machine and the remote machine. > gpg-agent runs fine on the remote machine, however I have found no way > to make it consistently prompt for the password on the right SSH > connection (I don't believe there even is a way to achieve this, as > there may be multiple, or I may leave several connections open and move= > between machines). The only thing that mostly works is using the remote= > gpg-agent to prompt on the terminal, which messes up the display > temporarily. The route i suggest above (with pinentry-curses might be what you're describing here. when you say "messes up the display temporarily" can you be more specific about what it does to the display? this may be a bug in pinentry-curses that could be fixed. --dkg ------enig2PGGJTJOBVXGHXQGMFHTA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQJ8BAEBCgBmBQJR2pqKXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFQjk2OTEyODdBN0FEREUzNzU3RDkxMUVB NTI0MDFCMTFCRkRGQTVDAAoJEKUkAbEb/fpcrN4QAMBtlCuCAFjrnce+rGYZfJBR Dx6q18lZm3bcpSrAHj9IB8k1Qs+XqKDNDN/47QZ0ehKY8fOcnX17lVasZHDjGbhn qP7ZPSG/ce0Ui91qTXYon+callh3NlCXIqKeAjOwPNPu1qVU6NS/eznkp9hDrjtu koJiaZ6eADeaGbxNxkZ+RB/Wr1nQje7XzusWJ4WYa7wwvW6EqnaC4r+X3IZ3CL/s 6QcsQ53L7N67JYz9aPURNlwLcO4LQj86mWAMNlu07F4pLaCIydipXoXZZTVL2Jve hWX+q0dnmzLZM+RztP46iALOzLP0aBPYAi6IhueohZB/IjhtCyaku+xSTtMF0xAR xkQpOOr9UKfcWsfNjE+76JmMZz36ayPRHXh8HnpzWJXDrq20MGElIXL3dSWUP2Zm x788G7s2ARqo/AnTOoFofTgyYY5b5JMgMyPLt90irSZBvpxAq342o+vNy7I6exLK PgCQWKI+oRmqXlrDuiJ8w5KpYIPcgw3DELbBAbKjrJs8BhYotG3wtHT8hnePsySg 6vbgZlFR1MIi3wYn/e4D3yfInnKtRk4W18ABhNP0ShGpyVfJUF0IN/3MX+9ZP7ud Z1SYW/GoS7MaG7YDXuS6N5f5GueURngg8yEMxvDuQo9CdfLp96k00CL5SVrBBoia irllHh4TwVq5nDopSQCY =9vt6 -----END PGP SIGNATURE----- ------enig2PGGJTJOBVXGHXQGMFHTA--