30 votes
Accepted

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
Accepted

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
7 votes
Accepted

How can I paste my password when pushing?

As you have noticed, you can yank the password when Magit is reading it in the minibuffer (this works pretty much always when user input is read in the minibuffer for whatever purpose). So the ...
tarsius's user avatar
  • 25.5k
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 github.com IdentitiesOnly yes IdentityFile ~/.ssh/your_ssh_key Then whenever magit asks git to ask ssh to talk to github.com, ssh will ...
db48x's user avatar
  • 16.8k
5 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
  • 753
4 votes
Accepted

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
  • 49.7k
4 votes
Accepted

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,083
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 https://help.github.com/articles/changing-a-remote-s-url/
irregular's user avatar
  • 982
3 votes
Accepted

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
Accepted

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
  • 28.2k
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,594
1 vote
Accepted

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