Skip to main content

Questions tagged [gpg-agent]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
22 views

GnuPG often asks for subkey passphrase when signing/encrypting messages even with large [default|max]-cache-ttl in gpg-agent.conf

I have in my ~/.gnupg/gpg-agent.conf the following: default-cache-ttl 172800 max-cache-ttl 172800 which works fine when I am en- or decrypting files using one of my regular GPG key pairs (just a ...
nvx's user avatar
  • 35
0 votes
1 answer
41 views

Decrypting multiple files quicker with gpg

The pass program is a command line utility to store passwords plus free form extra data in small files encrypted with gpg. It provides a grep sub-command in particular to find passwords by the extra ...
Harald's user avatar
  • 928
1 vote
1 answer
51 views

How can I start the gpg-agent daemon without a user logging on to the system

I am trying to pre-cache a GPG password into gpg-agent on a headless Ubuntu 20.04 server, I would like to achieve this without a user having to log on to the system. The aim of this pre-caching is to ...
davezeking's user avatar
0 votes
0 answers
73 views

gpg: error retrieving '[email protected]' via WKD: No data

I am trying to write a script where I use 7z on some directories, and then use gpg to encrypt them. journalctl -u backup_encrypt_browser.service tells me : gpg: error retrieving '[email protected]' via ...
superuser-Miguel's user avatar
0 votes
1 answer
102 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
0 votes
0 answers
30 views

gpg unusable secret key

gpg --list-secret-keys --keyid-format=long shows: sec rsa2048/588EFF3348F037FB 2013-04-25 [SCEA] ... uid [ultimate] ... But if I try to sign a file with that key, I get: skipped &...
runrig's user avatar
  • 101
0 votes
1 answer
76 views

how to change/add gpg key to pass

I need to change the gpg key originally used for pass on my system to a newly generated key. However, when I follow the advice I found on this thread: https://unix.stackexchange.com/questions/226944/...
naphelge's user avatar
0 votes
1 answer
51 views

gpg-agent is not logging to file specified in `gpg-agent.conf`

Below is my gpg-agent.conf file, the log-file option specifies where to put log however even though gpg-agent works fine the log has never been created. I'm thinking either the option is ignored or I'...
metablaster's user avatar
2 votes
1 answer
44 views

gpg-agent "forgetting" password for key, when getting too many requests

I'm running Ubuntu (via Regolith) and my gpg key is unlocked when I log in. I'm running multiple decrypt operations in parallel and I noticed, that if I get above 7, gpg-agent will "forget" ...
fbence's user avatar
  • 505
0 votes
0 answers
33 views

Should you keep the (encrypted) gpg secret key in a file to export the password store on another machine?

I am using gpg and pass to manage my password (on my Macos). I want to read the keychain contained in .password-store on another machine. As there was no public or private key listed in the gpg on the ...
ecjb's user avatar
  • 455
0 votes
1 answer
79 views

Change passphrase of SSH key stored in the gpg-agent

How do I change the passphrase of an SSH key that is stored in the gpg-agent?
iGEL's user avatar
  • 101
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
0 votes
0 answers
124 views

Run gpg from systemd script

I wrote a wrapper for rsync. It connects to my host and makes a backup of my $HOME directory via ssh. I use gpg-agent for the ssh verification. My script works when called from a terminal emulator. It ...
grbll's user avatar
  • 35
0 votes
1 answer
224 views

debian howto disable gpg-agent-browser.socket

On server there is no browser nore gui, so is it possible to disable the gpg-agent-browser.socket ? On debian 10.13 I can see those files: /usr/lib/systemd/user/gpg-agent.socket /usr/lib/systemd/user/...
Cyrille37's user avatar
1 vote
1 answer
17k views

Solving gpg: decryption failed: No secret key

I have encrypted a file through gpg ***.gpg --encrypt --recipient [email protected] *** The hard disk with my Linux system where such file was encrypted has dead. I keep just the ***.gpg file in an ...
iago's user avatar
  • 135
1 vote
1 answer
1k views

How to use a GPG key for SSH on macOS

Basically, my goal is to use a single key for everything. I have a GPG key that I imported onto my MacBook, and would like to use that key for SSH authentication. However, despite my several attempts, ...
Apoorv Chauhan's user avatar
1 vote
0 answers
94 views

How to remove authentication with gpg-agent/git-credentialmanager to pus to a public repo?

I have a azure devops repository which I have made public recently. Before it was private and I used the git credential manager and gpg-agent. If I want to push my changes I will get the error: $ git ...
chko's user avatar
  • 11
8 votes
2 answers
2k views

How do I get git to use the cli rather than some GUI application when asking for GPG password?

Whenever I try to create a signed git commit, I need to enter my GPG key. It spawns some GUI application to receive the password. It looked like the application was seahorse, so I uninstalled it, but ...
randomuser5767124's user avatar
5 votes
1 answer
1k views

gpg-agent.conf seems to have no effect on my gpg-agent cache-ttl settings

I'd like to set the password cache in gpg-agent to 15 seconds. Here is what I have done: My two configuration files and their contents: /home/xixor/.gnupg/gpg.conf - telling gpg to use gpg-agent: use-...
Xixor's user avatar
  • 131
1 vote
0 answers
193 views

Cannot install lwp on AUR: GPG key rejected by import screener

I am trying to install a package called "lwp" on the Arch User Repository. It requires the pgp key 4EEDEE4D29DAE8A18CAFDA18BEC621B96C853813 When I try and import the following key, I get an ...
Matr1x-101's user avatar
1 vote
1 answer
417 views

Remembering gpg pass-phrase for certain processes

I use GNU's password store (pass) to save all my passwords including my email passwords. I have a passphrase set on my GPG keys which is then remembered by gpg-agent for an hour. I also have a cron ...
Tohiko's user avatar
  • 307
1 vote
0 answers
628 views

Security concerns for gpg-agent caching the passphrase?

https://www.gnu.org/software/emacs/manual/html_node/pgg/Caching-passphrase.html When using GnuPG (gpg) as the PGP scheme, we recommend using a program called gpg-agent for entering and caching ...
midnite's user avatar
  • 443
1 vote
1 answer
868 views

How to set GPG cache ttl in a shell script?

How to set gpg-agent --no-allow-external-cache --default-cache-ttl 10 --max-cache-ttl 20 in a shell script? After I issue the command, it gives gpg-agent[4869]: gpg-agent running and available but ...
midnite's user avatar
  • 443
0 votes
0 answers
2k views

Export GPG Private Key WITHOUT knowning the passphrase

so I spent many hours on this now and I hope someone can give me any useful input. I want to export an encrypted secret key from GPG (which lies in ~/.gnupg/private-keys-v1.d) but I do not have the ...
xyzabc123's user avatar
3 votes
1 answer
3k views

Enable SSH access using a GPG key for authentication : The agent has no identities

I have followed How to enable SSH access using a GPG key for authentication to enable SSH access using a GPG key for authentication. $ gpg2 --expert --edit-key <KEY ID> gpg> addkey Please ...
Ahmad Ismail's user avatar
  • 2,738
0 votes
1 answer
354 views

How to make ~/.ssh/config Match host * exec inherit current shell's tty name?

I use OS X and a private SSH key stored in a Yubikey to SSH to remote servers. Each time after my Mac sleeps and wakes, I need to run gpg-connect-agent updatestartuptty /bye. This answer said I can ...
David Xia's user avatar
  • 205
4 votes
2 answers
4k views

gpg-agent hanging when trying to access private keys

I'm having trouble using gpg (actually, the gpg-agent) on my Debian Bullseye (Stable) system. More precisely, I use the following: gpg --version | head -n2 gpg (GnuPG) 2.2.27 libgcrypt 1.8.8 uname -...
n0542344's user avatar
  • 406
0 votes
1 answer
3k views

Why can't I connect to ssh using an address?

I have configured gpg-agent to connect to ssh, but for some reason I cannot connect using the device address. In ~/.ssh/config I added Host openwrt Hostname 192.168.1.1 User root Now using ssh ...
Zor's user avatar
  • 3
2 votes
2 answers
3k views

ssh with gpg-agent forwarding fails with "remote port forwarding failed for listen path"

SSH to remote machine using gpg-agent forwarding fails, but works with other machines. I cannot further ssh from remote machine using my local gpg-agent credentials. ssh -Avvv user@remotehost shows ...
CeDeROM's user avatar
  • 317
1 vote
1 answer
4k views

How to forward gpg-agent from host to docker container and reuse cached passphrase?

Information: GPG version: 2.2.23 Docker version 20.10.5 I am playing around with GPG on my laptop and trying to reuse it inside docker container. The docker container is simply a PHP-FPM alpine image....
Bologer's user avatar
  • 31
1 vote
1 answer
938 views

Why does `ssh-add` not show my GPG authentication key?

I tried to set up an authentication subkey with GPG for authentication against SSH servers, following this instruction set. Everything seems to work so far, but ssh-add -l does not show any keys: $ ...
quazgar's user avatar
  • 911
2 votes
1 answer
2k views

GPG key is not getting generated : agent_genkey in gpg is looking for some file

I'm facing issue to generate gpg key on my mac(10.15.7 Catalina). It is showing some error that the agent_genkey is looking for some file which is not available. Below is the debug information from ...
Learner's user avatar
  • 267
1 vote
1 answer
1k views

Using specific gpg key in ssh_config

I have multiple GPG keys. One of them I use on daily basis, signing commits, e-mails and such, it is on my computers and ready at hand. I have a different key that I consider more trustworthy, I use ...
Miška's user avatar
  • 51
2 votes
1 answer
2k views

gpg-agent (macOS) doesn't provide any key for SSH

There are several topics addressing similar issues, but none of the solutions provided there work for my environment, being: macOS 11.2.3 (MacBookPro M1/Apple silicon) GnuPG 2.2.27 (installed via ...
justClouds's user avatar
7 votes
2 answers
3k views

How can I use GPG agent forwarding over ssh when systemd owns the remote sockets?

I'm trying to follow these guides and answers https://wiki.gnupg.org/AgentForwarding https://superuser.com/questions/161973/how-can-i-forward-a-gpg-key-via-ssh-agent https://gist.github.com/...
oarfish's user avatar
  • 414
2 votes
2 answers
3k views

gpg failed to sign the data, failed to write commit object

I have searched the whole universe this error but i could not find any helpful tips. I have created a key using keybase and added my public key to github gpg my gpg --list-secret-keys --keyid-format ...
Fatih Akgun's user avatar
2 votes
1 answer
990 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
0 votes
1 answer
346 views

gpg does not prompt for password - dwm

I setup gpg with pass on a new computer and pass does not prompt me for the password of my gpg key, meaning I can't access my encrypted passwords on that computer. What can I do? when I run pass ...
weisbrja's user avatar
  • 241
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
0 answers
450 views

Is it possible to check for the presence of a cached GPG key without modifying the GPG timer?

I only know a way* of getting the information of the presence of a cached GPG passphrase, that is, to run $ gpg-connect-agent 'keyinfo --list' /bye S KEYINFO 01B3BE66C2EAC153C4ED25F01FEE13D356EF289F D ...
pedrormjunior's user avatar
0 votes
1 answer
48 views

How to use gnupg remotely on buster while also logged into the local GUI

I have a Debian buster system where I am logged in to the local GUI and also logged in over ssh. I need to sign something with gnupg over ssh. Unfortunately I get no prompt for a passphrase on my ssh ...
plugwash's user avatar
  • 4,351
2 votes
1 answer
2k views

Starting gpg-agent with specific options

I have an application, run as a service by a system user, which uses GPG (using libgpgme in C). This user has no home directory and I would like to eliminate password caching. Therefore I'd like gpg-...
Stewart's user avatar
  • 14.2k
0 votes
1 answer
751 views

How to start GnuPG SSH Agent for gvfs?

I use Gnome 3.36.3 (Ubuntu 20.04.1) with GnuPG 2.2.19 as SSH agent. I tell OpenSSH where to find the GnuPG SSH agent socket in my ~/.profile file: export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-...
awolf's user avatar
  • 46
4 votes
1 answer
3k views

How to get more gpg-agent info?

I followed encrypted netrc file with gpg tutorial. I edited my ~/.profile like this if test -f $HOME/.gpg-agent-info && \ kill -0 `cut -d: -f 2 $HOME/.gpg-agent-info` 2>/dev/null; then ...
MikiBelavista's user avatar
6 votes
1 answer
9k views

How to cache gpg key passphrase with gpg-agent and keychain on Debian 10?

I have a Debian 10 server. I want to send email with msmtp and I need to cache a passphrase for a gpg key. The smtp password needed by msmtp is encrypted in a file using this gpg key. msmtp will use ...
Zigobs's user avatar
  • 131
3 votes
1 answer
2k views

How to run gpg agent with custom config when the agent starts automatically after running a specific gpg command?

From the documentation, I can run gpg-agent with custom config like this and I think this is the official way: The following gpg-agent.conf contains this: allow-preset-passphrase default-cache-ttl ...
MaXi32's user avatar
  • 453
5 votes
1 answer
4k views

why does gpg-agent create several sockets

when using gpg with gpg-agent, following sockets are created in my ~/.gnupg directory: S.gpg-agent S.gpg-agent.browser S.gpg-agent.extra S.gpg-agent.ssh I assume, S.gpg-agent is the standard gpg-...
Martin Vegter's user avatar
1 vote
1 answer
653 views

How can I generate gpg keys in scripts without leaving gpg-agent running?

Recent versions of gpg launch a persistent user process (gpg-agent) when generating keys. This process remains running even after the command terminates. I want to change this behavior. Currently, I'm ...
Tenders McChiken's user avatar
3 votes
1 answer
351 views

Gnupg secp256k1 signature does not match other implementations

I am trying to make the gpg agent sign for cryptocurrency purposes. I've tried signing a couple of hashes, and the signature of one of them gets a different r while getting the same s than other ...
lash's user avatar
  • 739
2 votes
0 answers
2k views

gpg-agent on start up without open session

Environment Ubuntu Server 18.04 gpg2 v2.2.4 pass v1.7.1 Question Is there a way to start gpg-agent --supervised on startup ? When I try to start gpg-agent --supervised, I get : gpg-agent (GnuPG) ...
Florent L.'s user avatar