Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [pinentry]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
106 views

`gpg --pinentry-mode loopback` used to ask passphrase once but now it asks always

In short (Edit 1): How to make gpg -qd --pinentry-mode loopback out.gpg cache the passphrase for a period of time in the cli. It used to cache but now it doesn't. Edit 2: I have tried this thing in ...
mrdolichenus's user avatar
1 vote
3 answers
1k views

OpenGL fails to load due to nvidia driver

I have 2 video cards and installed the nvidia driver: ❯ lspci -nnk | grep -iA3 -E "(vga|NVIDIA).*(controller|GeForce)" 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics ...
azbarcea's user avatar
  • 122
1 vote
1 answer
660 views

How to call pinentry from bash script

How to call pinentry from bash script so I am prompted for single input on the same terminal from which my script was invoked from and then pipe the entry to some other command via stdout for the sake ...
Hnus's user avatar
  • 111
2 votes
0 answers
338 views

GPG using sudo under another user, is `pinentry-mode loopback` safe?

There are 2 users: user1 and user2. When trying to use gpg via sudo (symmetric decryption): user1@host: sudo -u user2 gpg /home/user2/pass.gpg an error gpg: decryption failed: No secret key. I set it ...
NewLinux's user avatar
  • 147
10 votes
3 answers
20k views

GPG can't decrypt: no pinentry program

I can't decrypt my passwords with pass neither with gpg directly. gpg: encrypted with rsa4096 key, ID id, created creation_date "name <email>" gpg: public key decryption ...
user avatar
2 votes
1 answer
3k views

Strange error with GnuPG: claims "no secret key" when terminal is too small

This is the content of my .gnupg/gpg-agent.conf: pinentry-program /usr/bin/pinentry-curses When I try to retrieve a password from pass' store, e.g. via pass -c path/to/password in a very small-sized ...
Enlico's user avatar
  • 1,677
2 votes
1 answer
991 views

GPG pinentry not receiving key presses during passphrase entry when forwarding gpg-agent

When forwarding my gpg-agent to a remote server I am able to see the my private key listed. Even though I unlocked my key locally I still need to unlock it on the remote machine. However when I try to ...
Reverie's user avatar
  • 21
3 votes
2 answers
2k views

Why would GPG Pinentry be slow when opening in GUI but instantaneous when opening in CLI?

Having a hard time figuring out the debugging steps for this behavior. I'll run some gpg command and, typically, about 20 seconds later a GUI Pinentry window will pop up where I type in my password ...
Eric Ihli's user avatar
  • 211
2 votes
1 answer
1k views

gpg/pinentry - Can't enter passphrase outside terminal

I am trying to decrypt a gpg file inside a script. When I run gpg -d file.gpg in the terminal, I get prompted to enter the password in a curses dialog box. But when I run a script containing that line,...
preferred_anon's user avatar
2 votes
1 answer
1k views

Remove "save in password manager" option in gpg pinentry

I have some libreoffice documents stored with "encrypt with gpg key" option. Today I was quite surprised when the document opened without requesting a passphrase. Eventually I found an ...
guest's user avatar
  • 21
2 votes
0 answers
84 views

GPG pinentry, how to show requestor

So I have pinentry popping up whenever I fresh boot my desktop environment (i3), asking for my main GPG main key password. I perhaps configured at some point some program to read some pass entry, but ...
skrat's user avatar
  • 255
2 votes
1 answer
1k views

Can I configure pass to always use pinentry-curses?

I use pinentry-qt most of the time, but in the specific case that I'm using pass, I would like to use pinentry-curses because of the faster startup time. Is there a way that I can configure pass to ...
Steve V.'s user avatar
  • 965
4 votes
0 answers
320 views

Arch/ XFCE - Disable global keyboard grabbing for gcr/ gnome-keyring

I am using gnome-keyring as ssh-agent on my arch/ xfce system. Since I have multiple ssh-keys, I additionally have a password manager to store their keys. Adding those ssh-keys to the keyring works ...
tobi's user avatar
  • 311
1 vote
1 answer
468 views

how to navigate with pinentry

I was was using gpg --gen-key till I got to enter the passphrase where I get: ┌──────────────────────────────────────────────────────┐ │ Please enter Passphrase, │ │ ...
invad0r's user avatar
  • 230
2 votes
1 answer
2k views

pinentry not showing in tmux

I'm having some trouble getting gpg (actually pass which uses gpg in the background) to work inside of tmux and a Yubikey Neo. When attempting to decrypt a file or sign something using gpg I get the ...
cdecker's user avatar
  • 125
3 votes
0 answers
1k views

Can't sign/encrypt unless I start gpg-agent manually

I recently set up Ubuntu in a VM for development work, but found that git couldn't sign my commits. Investigating further, I found that gpg-agent wasn't able to request my passphrase via pinentry-...
Ben Blank's user avatar
  • 142
3 votes
0 answers
824 views

How can I suppress the pinentry dialogue box if there is no gpg password?

I'm using (neo)mutt with GPG. I've set my gpg password to empty, but when I attempt to decrypt an incoming email, mutt still presents a pinentry dialogue box. If I just press Enter (with no string), ...
Sparhawk's user avatar
  • 20.1k
4 votes
1 answer
7k views

How to make the default-cache-ttl option of gpg-agent work?

I use pass as a password manager. I would like my passphrase to be cached during a certain amount of time to avoid retyping my passphrase every time that I want to clip one of my passwords. Pass is ...
Alain Danet's user avatar
1 vote
2 answers
2k views

gpg2 pinentry fails without X

What is working My gpg-agent pinentry works fine under X. I can run echo "test" | gpg2 -ase --default-recipient-self | gpg2 to cache my passwords and later run killall gpg-agent -1 to flush them. ...
rexroni's user avatar
  • 1,518
6 votes
0 answers
1k views

Intermingled input when using local gpg-agent from remote site

I'm starting a local gpg-agent on my Mac, with the extra-socket option. Then I connect to a remote site using SSH, forwarding the remote S.gpg-agent socket to the local S.gpg-agent.extra socket. This ...
Kusalananda's user avatar
  • 339k
0 votes
1 answer
633 views

Configure Duplicity to use pinentry?

Duplicity by default asks for passwords to GnuPG keys on start up and caches them in memory throughout process lifetime. Is there a way to have it use /usr/bin/pinentry instead so I know I'm not ...
Naftuli Kay's user avatar
  • 40.2k
1 vote
1 answer
3k views

Problem configuring GPG pinentry

I have two hosts, A and B. On A I have the gpg pinentry program setup to be pinentry-curses but I have no idea how I did it anymore. I can not seem to find the difference between A and B, but on A (...
Huckle's user avatar
  • 1,025
16 votes
2 answers
17k views

How to get pinentry-curses to start on the correct tty?

I use gpg-agent for managing both PGP e SSH identities. The agent is started with a script like this gpg_agent_env="$XDG_CACHE_HOME/gpg-agent.env" export GPG_TTY="$(tty)" if ! ps ...
Rnhmjoj's user avatar
  • 303
3 votes
1 answer
439 views

Non-GUI based pin-entry for gpg

I'm in the process of remotely viewing and selecting hundreds of images, some of which are encrypted with a symmetric key. I log in to the remote desktop machine using ssh. The viewing is not fast, ...
Cina's user avatar
  • 35
5 votes
1 answer
3k views

About pinentry usage along with gpg

Is mandatory to use pinentry with gpg2? Why is pinentry better over legacy prompt?
sebelk's user avatar
  • 4,469
4 votes
0 answers
370 views

Enigmail Thunderbird pinentry requests all passwords to all secret keys

I want to read a GPG encrypted email using Thunderbird Enigmail from [email protected] and Edit > Account Settings > Account.1 > OpenPGP Security has "Use specific OpenPGP key ID" selected. However, ...
jtd's user avatar
  • 176
12 votes
2 answers
17k views

Pinentry fails with gpg-agent and SSH

I'm running Fedora 22. I'm trying to setup GnuPG to have my SSH connections authenticated using my PGP authentication subkey that is located on my Yubikey Neo. I have a systemd unit starting the gpg-...
Spack's user avatar
  • 2,017
3 votes
0 answers
3k views

Decrypting with GPG after a "su - different user"

I have cron job running a script in the cron of "USER A" that encrypts many files in a loop using the gpg command below: gpg --batch --cipher-algo AES256 --passphrase "PASSWORDISHERE" -c FILENAME "...
Dude's user avatar
  • 31
2 votes
0 answers
1k views

How can I have pinentry ask if a password should be remembered?

In this answer, the password prompt for gpg-agent includes options for how long the password should be remembered. However, in my system I get a much simpler prompt, without that option How can I ...
hugomg's user avatar
  • 5,847