26 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 ...
15 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 ...
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 ...
  • 24.5k
7 votes
Accepted

Password/Key Management for multiple machines in emacs

I use a simple password manager called pass. It offers a simple command line interface with is ideal for integrating with Emacs. The backing store is a GPG encrypted GIT repo. It actually ships with ...
  • 4,556
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 ...
  • 1,289
6 votes
Accepted

Configure jabber without writing password in plain text

See Emac's auth-source. You may discover that it is already wired into the default authentication of the tool your using, for example ERC uses it. I wrote a bit about it in this blog post.
  • 574
5 votes
Accepted

inserting passwords into pass from shell-mode

Configure comint-password-prompt-regexp so that it includes whatever text pass gives at the second prompt. Alternative answer, instead of just typing the password, you could type M-x send-invisible ...
  • 1,776
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 ...
  • 12.6k
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 ...
  • 44.3k
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 ...
  • 1,255
3 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/
  • 942
3 votes

Password/Key Management for multiple machines in emacs

Tramp uses the auth-sources backend for managing passwords. It needs some specialized entries in .authinfo, like machine melancholia port scp login daniel password geheim Read the Tramp manual, ...
3 votes

Configure jabber without writing password in plain text

I use pass to store my passwords, and a lisp wrapper to set the value appropriately: (require 's) (defun my-password (pass) (s-trim (shell-command-to-string (concat "pass show " pass))))...
  • 4,998
3 votes

Tramp: SSH login does not prompt for password

If the account you're trying to log in with uses some weird fancy shell prompt, then there is a good chance that this is what makes tramp trip. One way to test it: Log in as root, then enter PS1="&...
  • 853
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 /...
  • 2,406
2 votes
Accepted

Mac OS Keychain with SMTP email password

A few days ago I reported a bug against Emacs for this very problem (bug 19074). If you're comfortable doing so, I'd suggest applying the patch I supplied - and please report back with your results so ...
  • 372
2 votes

Mac OS Keychain with SMTP email password

I didn't know about `auth-source-search, so I wrote this code instead, in order to extract a password from the keychain: (defun get-keychain-password (service) "Get a generic password from the OS X ...
2 votes
Accepted

Tramp: SSH login does not prompt for password

In short, I had an incorrectly configured ~/.authinfo that causes Tramp to automatically send a default password (which was the incorrect password). Deleting ~/.authinfo resolved my issue. An ...
  • 2,340
2 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 ...
  • 409
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 ...
1 vote

Prevent Tramp from asking for a password for passwordless sudo

The issue seemed to have something to do with ido, so I added Option B from here and it works great. (defadvice ido-find-file (after find-file-sudo activate) "Find file as root if necessary." (...

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