From: Tassilo Horn <tsdh@gnu.org>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Pinentry in emacs without X doesn't work reliably
Date: Fri, 08 Jul 2016 17:45:15 +0200 [thread overview]
Message-ID: <87k2gw9lro.fsf@gnu.org> (raw)
Hi all,
at work, I'm blocked from important information sources such as IRC and
the usenet. To work around that limitation, I ssh to some server of
mine (and did I mention that I have to tunnel the ssh connection thru
HTTPS using corkscrew to access my server?!), and that server has a
current emacs master checkout which I use for Gnus and rcirc.
So far, so good. My problem is that the server obviously has no X
server, but my connection information for gnus/rcirc are in files
encrypted using GnuPG (I use the same config files on all my machines).
When I fire up Gnus or rcirc, emacs will try to decrypt those files
transparently using EasyPG.
With my laptop, some X11/GTK/GNOME pinentry dialog pops up where I can
type in my password. On the server, I get this (curses?) dialog:
┌────────────────────────────────────────────────────────────────┐
│ Please enter the passphrase to unlock the OpenPGP secret key: │
│ "Tassilo Horn <my@mail.invalid>" │
│ XXXX-bit ELG key, ID XXXXXXXXXXXXXXXX, │
│ created 20XX-XX-XX (main key ID XXXXXXXXXXXXXXXX). │
│ │
│ │
│ Passphrase: __________________________________________________ │
│ │
│ <OK> <Cancel> │
└────────────────────────────────────────────────────────────────┘
Now the problem is, that my keyboard input doesn't seem to get thru to
that pinentry dialog reliably. For examply, I type "geheimnis" and what
the dialog shows is, e.g., "**" as if it had only received two
characters.
So basically what I do is I type
gggggggg
ee
hhhhhhhhhhhhhhhh
eeeeee
i
mmmmmmm
nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
iiiiiiiiiiiiiiiiiii
ssss
that is, I repeat every password char as long as no additional * shows
up at the password prompt.
Sometimes, that quirky workaround doesn't even help. I can type "g" as
often as I want and nothing appears at the dialog.
I think I encountered that problem for quite some time now but it hasn't
been important enough to complain. Well, now it is.
The server is running gnupg-2.1.13 and pinentry-0.9.7 where the latter
has the following pinentry programs (not sure which is used):
/usr/bin/pinentry-curses
/usr/bin/pinentry-emacs
/usr/bin/pinentry-gnome3
/usr/bin/pinentry-gtk-2
/usr/bin/pinentry-qt
/usr/bin/pinentry-tty
Any idea how to fix or debug that issue?
Thanks,
Tassilo
next reply other threads:[~2016-07-08 15:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-08 15:45 Tassilo Horn [this message]
[not found] <mailman.838.1467992730.26859.help-gnu-emacs@gnu.org>
2016-07-08 16:30 ` Pinentry in emacs without X doesn't work reliably HASM
2016-07-08 17:53 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k2gw9lro.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.