GPG-Agent is a daemon to manage secret (private) keys independently from any protocol. Questions related to encrypting and signing data with GnuPG aka GPG can be tagged with GPG-Agent
Questions tagged [gpg-agent]
55 questions
158
votes
8 answers
How can I restart gpg-agent?
Some changes in the GnuPG configuration demands a gpg-agent restart / reboot (according to the doc), but... How can I do that? I tried gpg-agent restart, service gpg-agent restart, but did not succeed.
Felipe
- 2,000
- 3
- 16
- 14
25
votes
1 answer
How to delete a subkey on Linux in GnuPG?
I would like to delete an OpenPGP subkey of mine on Linux (L)Ubuntu 16.04 in GnuPG. It's a kind of "blank" useless key (see below key 33333333). I have not uploaded it to key servers, so I think it's ok to delete without revoking it.
gpg2…
aldaron
- 493
- 2
- 5
- 7
23
votes
2 answers
gpg2: no secret key
I've been using enigmail for over a year without issue, and today it doesn't work.
I found the following interesting fact:
gpg --decrypt something.gpg # this works
gpg2 --decrypt something.gpg # this fails
So something is broken with gpg version 2…
rexroni
- 343
- 1
- 2
- 7
11
votes
3 answers
I want to make pinentry use GUI locally and CLI on SSH
I need to be able to GPG-sign git commits in two different Linux environments.
In a full GUI X-Window setup using the GUI-based password dialog box
In an SSH, without X-forwarding, using command-line only password entry
In both cases I need to be…
Chindraba
- 1,963
- 1
- 11
- 25
10
votes
4 answers
How to prevent gpg-agent from timing out during passphrase collection?
I'm calling out to gpg2 in a CLI script for symmetrical encryption of a local file. It appears to have gpg-agent prompt for a passphrase via some CLI, text based UI. As long as I'm around to enter the passphrase everything works fine. If I'm not,…
rcampbell
- 583
- 2
- 7
- 13
7
votes
5 answers
Can't import key with gpg on arch linux
I'm a arch 4.9.8-1 system.
I wanted to install linux-vfio kernel for gpu passthrough and to fix a problem with a bad IOMMU group.
Trying to install the linux-vfio kernel I got the following error for missing keys.
$ yaourt -S linux-vfio
.
.
.
==>…
Haroon
- 71
- 1
- 1
- 4
6
votes
3 answers
gpg2 running unreasonably slow, only when agent does not have password cached
Recently, my pass password manager has started taking upwards of 45 seconds to bring up the gpg-agent password prompt for my master password, which is super annoying when I'm trying to log into a website and have to sit there staring at the password…
Soren Bjornstad
- 413
- 2
- 12
6
votes
1 answer
gpg-agent: a gpg-agent is already running - not starting a new one
Trying to configure gpg in a way that I enter passphrase only once, and it will work for the whole session.
However, this is what I'm getting:
$ pgrep gpg-agent | wc
0 0 0
$ gpg-agent --daemon
gpg-agent: a gpg-agent is already…
xpt
- 8,261
- 38
- 102
- 156
6
votes
2 answers
How to configure PuTTY + gpg-agent to connect an SSH Linux server
I have a key-pair generated with Kleopatra (from Gpg4win 3.0 suite). I've converted the public key to an RSA ssh key and add it to the authorized_keys file in a Linux box.
On the Windows machine I've configured the gpg-agent.conf file…
user2641103
- 161
- 1
- 3
6
votes
2 answers
Gpg-agent under Windows as SSH Agent for git bash
gpg-agent has options "--enable-ssh-support" and "--enable-putty-support" that allows it to use it as a drop-in replacement for the well-known ssh-agent.
I've been pulling my hair out trying to figure out how exactly make this work in windows and…
Ron
- 181
- 1
- 5
5
votes
3 answers
GnuPG 2.2 refuses secret key import: "error sending to agent: operation cancelled"
I'm trying to import my PGP identity including secret keys to a new computer by connecting to a computer which has the secret key, and running
ssh othercomputer cat myself.gpg | gpg2 --import
When doing this, it looks like GPG is importing the…
kqr
- 181
- 1
- 6
5
votes
1 answer
Synchronize GnuPG 1.4 and GnuPG 2.1 keychains
While importing my keys to GnuPG on a new system, I considered the following:
Question
Is it possible to synchronize the gpg and gpg2 (gpg2.1) keychains?
Is it wise to do so?
Considering
I found this answer to "Are GnuPG 1 and GnuPG 2 compatible…
hub
- 491
- 1
- 5
- 15
4
votes
0 answers
gpg: skipped "12345689": Unusable secret key / how to use signing subkey for gpg?
As you see, I have a key with id 12345689, and I'm trying to sign with it in git
gpg -k
/home/lz/.gnupg/pubring.kbx
---------------------------
pub rsa4096 2020-03-02 [C]
12345689
uid [ unknown] Person Person
sub …
Rafaelo
- 141
- 1
- 2
4
votes
1 answer
yubikey/gpg-agent always asking for my PIN when running git commit
recently, git has been asking me for my yubikey pin every 3 or 4 times after i've already typed in my pin. this didn't use to happen before. i'm thinking maybe the card isn't getting read correctly or is getting disconnected somehow. it's become…
reuel
- 41
- 1
4
votes
2 answers
Why is gpg-agent/pinentry not available when signing commits with git?
Currently, I am on Windows running git 2.15.0.windows.1, gpg 2.2.1, and gpg-agent 2.2.1. I am trying to sign a commit with git via pinentry/gpg-agent, however, when signing a commit via git, pinentry never appears and git throws an error. I am…
Judge2020
- 167
- 1
- 5