From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daiki Ueno Newsgroups: gmane.emacs.bugs Subject: bug#8791: 23.3; EasyPG: pinentry in remote emacs session without X Date: Mon, 06 Jun 2011 10:46:05 +0900 Message-ID: References: <87d3ivvl0c.fsf@lukas.physics.niu.edu> <19945.38370.473370.719275@gargle.gargle.HOWL> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1307324847 3842 80.91.229.12 (6 Jun 2011 01:47:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 6 Jun 2011 01:47:27 +0000 (UTC) Cc: 8791@debbugs.gnu.org To: "Roland Winkler" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 06 03:47:21 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QTOuV-0008Du-3k for geb-bug-gnu-emacs@m.gmane.org; Mon, 06 Jun 2011 03:47:19 +0200 Original-Received: from localhost ([::1]:41861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTOuT-0007dV-LJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 05 Jun 2011 21:47:17 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:33111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTOuF-0007dB-GF for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 21:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTOuE-0005Lb-Fm for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 21:47:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTOuE-0005LX-Cz for bug-gnu-emacs@gnu.org; Sun, 05 Jun 2011 21:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QTOuD-0005pI-Oh; Sun, 05 Jun 2011 21:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daiki Ueno Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jun 2011 01:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8791 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8791-submit@debbugs.gnu.org id=B8791.130732478322331 (code B ref 8791); Mon, 06 Jun 2011 01:47:01 +0000 Original-Received: (at 8791) by debbugs.gnu.org; 6 Jun 2011 01:46:23 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QTOtb-0005o8-G3 for submit@debbugs.gnu.org; Sun, 05 Jun 2011 21:46:23 -0400 Original-Received: from ivory4.scn-net.ne.jp ([219.117.176.192]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1QTOtY-0005nu-DE for 8791@debbugs.gnu.org; Sun, 05 Jun 2011 21:46:22 -0400 Original-Received: from ([192.168.0.187]) (envelope sender: ) by ivory4.scn-net.ne.jp with Active!Hunter esmtp server; Mon, 6 Jun 2011 10:46:13 +0900 Original-Received: Received: from well-done.deisui.org (g187018.scn-net.ne.jp [202.83.187.18]) (authenticated) by blue17.scn-net.ne.jp (unknown) with ESMTP id p561kD8P025859; Mon, 6 Jun 2011 10:46:13 +0900 In-Reply-To: <19945.38370.473370.719275@gargle.gargle.HOWL> (Roland Winkler's message of "Fri, 3 Jun 2011 21:18:10 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 05 Jun 2011 21:47:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:46985 Archived-At: "Roland Winkler" writes: > On Fri Jun 3 2011 Daiki Ueno wrote: >> Well I think pinentry should fallback to use curses in this case. >> However it is not currently possible since there is no way to get the >> tty where Emacs is running. See: >> >> http://article.gmane.org/gmane.emacs.devel/96207 > > I do not know much about the internals of gpg. I was wondering: for > gpg, is there anything similar to the ssh-add command, which could > serve as a fallback? I suspect that gpg command installed on your remote system is GPG2, which is tightly coupled with gpg-agent (and thus pinentry) for secret key operations by its design. Assuming that, I could imagine a couple of (insecure) workarounds: 1. install both GPG1 and GPG2 2. keep using GPG2 and write a pinentry program which retrieves passphrase via emacsclient. Generally I'd recommend 1, since most distros provide both packages, which can be installed with no conflict. Regards, -- Daiki Ueno