Skip to main content
30 votes

Enabling minibuffer pinentry with Emacs 25 and GnuPG 2.1 on Ubuntu Xenial

You also have to Explicitely enable loopback mode for pinentry in your gpg-agent.conf. Configure epa to use loopback for pinentry. Start the pinentry server in emacs, 1. Enable Emacs pinentry and ...
Oliver Scholz's user avatar
16 votes

How to prevent Emacs from showing passphrase in `M-x shell`?

In Shell mode, Emacs detects password prompts based on the prompt. If it sees Password: (or Enter new password:, or Passwort:, or Wachtwoord: or a number of variations), it assumes that you're ...
Gilles 'SO- stop being evil''s user avatar
6 votes

Enabling minibuffer pinentry with Emacs 25 and GnuPG 2.1 on Ubuntu Xenial

For setups with GnuPG >= 2.1, pinentry package is not needed anymore. Quote from the Emacs News.26 file: ** The pinentry.el library has been removed. That package (and the corresponding change in ...
Y. E.'s user avatar
  • 767
6 votes

gpg password entry in minibuffer, not popup

Have you tried installing gpg version greater than 2.1, and then (setq epa-pinentry-mode 'loopback)? This should prompt for the password in the minibuffer. Edit: epa-pinentry-mode has been marked ...
InHarmsWay's user avatar
  • 1,319
5 votes

Magit how to use ssh key rather than being prompted for password

Edit ~/.ssh/config so that it contains the following: Host IdentitiesOnly yes IdentityFile ~/.ssh/your_ssh_key Then whenever magit asks git to ask ssh to talk to, ssh will ...
db48x's user avatar
  • 18.1k
4 votes

Is it normal for a package to request [sudo] in order to install a package? (this case pdf-tools) concerned about password integrity

The reason you were asked for your password was that apt-get install was being invoked to install the additional software (poppler and friends) needed by pdf-tools. 1) Is this typical? No -- the ...
phils's user avatar
  • 51.3k
4 votes

Emacs: Get user input when using interactive Python with `getpass`

To make jpkotta's solution work for Windows, you need to use def my_getpass(prompt): if os.isatty(0): return getpass.getpass(prompt) else: return input(prompt) This is ...
npostavs's user avatar
  • 9,203
4 votes

Emacs: Get user input when using interactive Python with `getpass`

On Linux, it works just like input() (terminates with RET, input is visible). getpass relies on setting the terminal correctly, and inferior python mode isn't a standard terminal. For example, if ...
jpkotta's user avatar
  • 508
4 votes

Magit how to use ssh key rather than being prompted for password

The issue was that the remote url was set to https rather than ssh following these steps fixed the issue
irregular's user avatar
  • 1,012
3 votes

how to use minibuffer instead of pop-up window for GPG files?

I am moving my comment to an answer explaining how pinentry-emacs works because of formatting pinentry-emacs stops the window from popping up that asks for your password and insteads asks for your ...
Jules's user avatar
  • 1,225
3 votes

At the time of prompting for a password (from a subordinate shell), sometimes Emacs hides the password, sometimes not. Why the inconsistency?

comint uses a regular expression to recognize password prompts: comint-password-prompt-regexp. It's fairly complicated in an attempt to catch as many variations as possible, but it is conceivable (and ...
NickD's user avatar
  • 29.8k
2 votes

User-friendly setup of Emacs with GPG, mu4e, and mu4e-send-delay

This was intended as a comment, but it's too long, hopefully it will give you some hints. Right now I don't have a mac to try OSX configs, but this is what I have now: pinentry: pinentry-program /...
Muihlinn's user avatar
  • 2,624
1 vote

Is there a way to prevent keyboard echo while entering a password in shell-mode?

If you want Emacs to behave like a terminal, you need to use one of the terminal emulation packages, such as: term, ansi-term, or vterm (and maybe eat, but I've never tried it).
rpluim's user avatar
  • 5,305
1 vote

Unable to authenticate sending mail using smtpmail-send-it to gmail, "Username and Password not Accepted"

This issue was solved when I manually edited my password in pass via pass edit to be equivalent to my app password that's stored elsewhere inpass` for imap mail ...
Caleb Jay's user avatar
  • 299
1 vote

Encrypt excerpts in org file (passwords only)

Partial solution that hides passwords, but does not enctrypt: (defvar mypasshide-prefix-re "^pass: *") (defun mypasshide--toggle-display (overlay hide) "Hide or reveal region. ...
gavenkoa's user avatar
  • 3,452
1 vote

Tramp hangs even without prompting passcode

The issue seems to be the inability of Emacs 24.3 to handle RSA token passcode request. To solve this issue I upgraded to Emacs 24.5 employing Linuxbrew as follows brew install linuxbrew/xorg/xorg ...
rambalachandran's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible