Re: gpg-preset-passphrase: caching passphrase failed: Forbidden

2024-12-11 Thread Werner Koch via Gnupg-users
rbidden You are using a remote connection - that is your agent is running on another machine via ssh forwarding of the local socket. For security reasons certain commands are not allowed. Go to the machine where the agent is running and run gpg-preset-passphrase over there. See also https://wiki.

gpg-preset-passphrase: caching passphrase failed: Forbidden

2024-12-10 Thread Elliott de Launay via Gnupg-users
Hi there, I'm having a hard time finding resources to help me troubleshoot the following error > gpg-preset-passphrase: problem setting the gpg-agent options > gpg-preset-passphrase: caching passphrase failed: Forbidden when I try to preset password via: $ /usr/lib/gnupg2/gpg-preset

Re: gpg-preset-passphrase and extra agent socket

2023-03-27 Thread xeyrion--- via Gnupg-users
On Mon, Mar 27, 2023 at 5:58 AM Werner Koch wrote: > You are right. I forgot about this. > > You need to wait for the next version or apply the attached patch and > run gpg-preset-passphrase with the option --restricted to address the > other cache. > Great, thanks for confir

Re: gpg-preset-passphrase and extra agent socket

2023-03-27 Thread Werner Koch via Gnupg-users
hrase): Use option. -- We use a different cache for connections from the extra-socket. However, with gpg-preset-passphrase is only able to preset a passphrase into the regular cache. Further, a restricted connection may not use PRESET_PASSPHRASE. To solve this we add an new option to pres

Re: gpg-preset-passphrase and extra agent socket

2023-03-25 Thread xeyrion--- via Gnupg-users
see some error > message "Forbidden" when the remote site issues certain commands. > Thanks for the debugging tips. I collected more info using those. Caching behavior does indeed seem to depend on connection type based on what I am seeing in the logs: Call to gpg-preset-passphrase for :

Re: gpg-preset-passphrase and extra agent socket

2023-03-24 Thread Werner Koch via Gnupg-users
On Wed, 22 Mar 2023 16:16, xeyrion--- said: > Forwarding normal socket (instead of extra socket) makes the prompt go > away. Is there a way to preset passphrase for extra socket as well? The caching behavior does not depend on the connection type. Thus this should not be an issue. I assume you

gpg-preset-passphrase and extra agent socket

2023-03-22 Thread xeyrion--- via Gnupg-users
Hello, I am trying to set up agent forwarding as per https://wiki.gnupg.org/AgentForwarding. Everything is generally working, but the remote gpg is prompting for passphrases despite gpg-preset-passphrase having been used against local agent. Forwarding normal socket (instead of extra socket

gpg-preset-passphrase and extra agent socket

2023-03-22 Thread xeyrion--- via Gnupg-users
I am trying to set up agent forwarding as per https://wiki.gnupg.org/AgentForwarding. Everything is generally working, but the remote gpg is prompting for passphrases despite gpg-preset-passphrase having been used against local gpg agent. Forwarding normal socket (instead of extra socket) makes

Re: Confusion about gpg-preset-passphrase

2023-03-03 Thread Efe İzbudak via Gnupg-users
On 23/03/03 03:09PM, Ingo Klöcker wrote: > On Freitag, 3. März 2023 13:09:09 CET efeizbudak via Gnupg-users wrote: > > So I'm trying to use gpg-preset-passphrase but for some reason I keep > > having to enter the passphrase all the same. I run > > > > /usr/libexe

Re: Confusion about gpg-preset-passphrase

2023-03-03 Thread Ingo Klöcker
On Freitag, 3. März 2023 13:09:09 CET efeizbudak via Gnupg-users wrote: > So I'm trying to use gpg-preset-passphrase but for some reason I keep > having to enter the passphrase all the same. I run > > /usr/libexec/gpg-preset-passphrase --preset $KEYGRIP Works for me (with the cu

Confusion about gpg-preset-passphrase

2023-03-03 Thread efeizbudak via Gnupg-users
Hi all, So I'm trying to use gpg-preset-passphrase but for some reason I keep having to enter the passphrase all the same. I run /usr/libexec/gpg-preset-passphrase --preset $KEYGRIP and then paste the passphrase (I've also tried this with the keygrip for the [E] subkey as opposed

Re: Have gpg-preset-passphrase always required a keygrip? (was: Newbie question.)

2020-07-13 Thread raf via Gnupg-users
Dmitry Alexandrov wrote: > Peter Lebbing wrote: > > You can actually unlock keys the way GnuPG intends to do that with: > > > > $ my-unlocker | /usr/lib/gnupg/gpg-preset-passphrase --preset > > > > You can find the keygrip for your keys with: > > >

Have gpg-preset-passphrase always required a keygrip? (was: Newbie question.)

2020-07-13 Thread Dmitry Alexandrov
Peter Lebbing wrote: > You can actually unlock keys the way GnuPG intends to do that with: > > $ my-unlocker | /usr/lib/gnupg/gpg-preset-passphrase --preset > > You can find the keygrip for your keys with: > > $ gpg --with-keygrip --list-secret-keys > > You do need i

Re: gpg-preset-passphrase installation and usage

2019-04-15 Thread gnupg
ifically, using > https://github.com/docker/docker-credential-helpers, with setup > https://github.com/docker/docker-credential-helpers/issues/102#issuecomment-388634452. > > Steps: > use gpg-preset-passphrase > Current Setup > > * ~/.gnupg/gpg-agent.conf > *

Re: gpg-preset-passphrase installation and usage

2019-04-13 Thread Peter Lebbing
On 13/04/2019 14:34, Peter Lebbing wrote: > Either reload the agent (this will make it forget all passphrases) Of course I should have made that explicit. You reload the agent by: $ gpgconf --reload gpg-agent I should mention this before you start figuring out a way to send it SIGHUP (which btw

Re: gpg-preset-passphrase installation and usage

2019-04-13 Thread Peter Lebbing
27;re using something ancient that upstream doesn't support and which has known defects? Is this a distribution-supported version? If there is no security support from any party, I think you should switch to a supported version. > * Setup gpg-preset-passphrase > o gpg-pres

Re: gpg-preset-passphrase installation and usage

2019-04-13 Thread Walia, Gaurav (333G) via Gnupg-users
setup https://github.com/docker/docker-credential-helpers/issues/102#issuecomment-388634452. Steps: use gpg-preset-passphrase Current Setup * ~/.gnupg/gpg-agent.conf * pinentry-program /usr/bin/pinentry-curses * max-cache-ttl 6048 * default-cache-ttl 6048

gpg-preset-passphrase installation and usage

2019-04-13 Thread Walia, Gaurav (333G) via Gnupg-users
Hello, Very new to gpg. I’m attempting to use gpg-preset-passphrase. But uncertain how to go about enabling it for usage. Could someone direct me or provide me some instructions in how to go about enabling gpg-preset-passphrase? I have the following version installed: gpg --version gpg

gpg-preset-passphrase installation and usage

2019-04-13 Thread Walia, Gaurav (333G) via Gnupg-users
Hello, Very new to gpg. I’m attempting to use gpg-preset-passphrase. But uncertain how to go about enabling it for usage. Could someone direct me or provide me some instructions in how to go about enabling gpg-preset-passphrase? I have the following version installed: gpg --version gpg

Re: Unable to get gpg-preset-passphrase working with gpg2 + gpg-agent in Ubuntu Xenial

2018-08-18 Thread Austin Witt
It really was that simple! Thank you! I must have spent too many hours staring at it to be able to see such a simple issue. gpg-preset-passphrase is happy with a keygrip and works exactly as I want it to. Cheers! On Thu, Aug 16, 2018 at 11:34 AM, Peter Lebbing wrote: > On 16/08/18 18

Re: Unable to get gpg-preset-passphrase working with gpg2 + gpg-agent in Ubuntu Xenial

2018-08-16 Thread Peter Lebbing
On 16/08/18 18:31, Peter Lebbing wrote: > By the way, the GnuPG 2.1 in Ubuntu 16.04 hasn't been updated in almost > two years. I don't feel comfortable with it, and I would consider > alternatives. s/two years/two and a half years/ It hasn't been updated since release. For a moment I was thinki

Re: Unable to get gpg-preset-passphrase working with gpg2 + gpg-agent in Ubuntu Xenial

2018-08-16 Thread Peter Lebbing
gpg-preset-passphrase wants a keygrip, not a key fingerprint. To get the keygrip for a specific key, use f.e.: --8<---cut here---start->8--- $ gpg --with-keygrip -k 211601B877A3395Apub rsa1024 2012-03-17 [SC] [expires: 2018

Unable to get gpg-preset-passphrase working with gpg2 + gpg-agent in Ubuntu Xenial

2018-08-16 Thread Austin Witt
cifically to gpg 2.1+; most of what I've found (on the stackexchange sites, forums, and mailing lists, etc) reference older versions of gpg, especially where gpg-agent is concerned. I execute gpg-preset-passphrase to the best of my understanding, but all GPG tools still prompt me for a passp

Workaround for missing pinentry support in gpg-preset-passphrase? (was: How to avoid Passphrase prompt)

2018-02-02 Thread Peter Lebbing
On 02/02/18 12:23, Peter Lebbing wrote: > Do this every time after starting the server/starting gpg-agent, to unlock > the key: > > gpg-preset-passphrase --preset 15CB764B81D542CF921978CA89910C69D53F4E2D > > (Type in the password. Currently no pinentry support.) It is

Re: gpg-preset-passphrase not working with 2.1

2016-07-18 Thread Justus Winter
Hello :) David Matthews writes: > I can't get gpg-preset-passphrase to work with GnuPG 2.1.7. The > command appears to work successfully but the passphase is not found by > GET_PASSPHRASE. I've included details of my simple test below plus the > output from running it o

Re: gpg-preset-passphrase not working with 2.1

2016-07-18 Thread David Matthews
On 14 July 2016 at 07:29, David Matthews wrote: > On 13 July 2016 at 13:13, Daniel Kahn Gillmor wrote: >> Hi David-- >> >> On Tue 2016-07-12 16:46:53 +0200, David Matthews wrote: >>> I can't get gpg-preset-passphrase to work with GnuPG 2.1.7. >> >&g

Re: gpg-preset-passphrase not working with 2.1

2016-07-13 Thread David Matthews
On 13 July 2016 at 13:13, Daniel Kahn Gillmor wrote: > Hi David-- > > On Tue 2016-07-12 16:46:53 +0200, David Matthews wrote: >> I can't get gpg-preset-passphrase to work with GnuPG 2.1.7. > > there have been significant changes to GnuPG between 2.1.7 and 2.1.13. &g

gpg-preset-passphrase not working with 2.1

2016-07-13 Thread David Matthews
I can't get gpg-preset-passphrase to work with GnuPG 2.1.7. The command appears to work successfully but the passphase is not found by GET_PASSPHRASE. I've included details of my simple test below plus the output from running it on Centos 7.2 (where it works using 2.0.22) and Fedora 23

Re: gpg-preset-passphrase not working with 2.1

2016-07-13 Thread Daniel Kahn Gillmor
Hi David-- On Tue 2016-07-12 16:46:53 +0200, David Matthews wrote: > I can't get gpg-preset-passphrase to work with GnuPG 2.1.7. there have been significant changes to GnuPG between 2.1.7 and 2.1.13. can you try upgrading to 2.1.13?

gpg-preset-passphrase not working with 2.1

2016-07-12 Thread David Matthews
I can't get gpg-preset-passphrase to work with GnuPG 2.1.7. The command appears to work successfully but the passphase is not found by GET_PASSPHRASE. I've included details of my simple test below plus the output from running it on Centos 7.2 (where it works using 2.0.22) and Fedora 23

gpg-preset-passphrase: problem setting the gpg-agent options [caused by empty $DISPLAY]

2015-12-02 Thread gnupg
Hi, ubuntu-14.04.3 LTS gnupg-1.4.16-1ubuntu2.3 gnupg2-2.0.22-3ubuntu1.3 gnupg-agent-2.0.22-3ubuntu1.3 I've just started using gpg-agent and gpg-preset-passphrase to store a passphrase briefly. Yesterday, this was working fine on two hosts. Today, it stopped working on one of them. Th

Re: gpg-preset-passphrase: cache id

2013-05-27 Thread Werner Koch
On Mon, 27 May 2013 14:02, mailinglis...@hauke-laging.de said: > How is a passphrase with a cache id like foo:12346 used? Is it tried for all > keys which do not have a keygrip entry? No. It is used with the commands GET_PASSPHRASE [--data] [--check] [--no-ask] [--repeat[=N]]

gpg-preset-passphrase: cache id

2013-05-27 Thread Hauke Laging
Hello, I quote from the man page: ### gpg-preset-passphrase [options] [command] cacheid cacheid is either a 40 character keygrip of hexadecimal characters identifying the key for which the passphrase should be set or cleared

Re: gpg-preset-passphrase

2010-03-08 Thread kkaputa
K Daniel Eggleston-2 wrote: > > I'm looking for some help explaining the behavior of > gpg-preset-passphrase. > > First, the manpage states: > >Passphrases set with this utility don't expire unless the > --forget >option is used to explicit

gpg-preset-passphrase

2010-03-07 Thread Daniel Eggleston
I'm looking for some help explaining the behavior of gpg-preset-passphrase. First, the manpage states: Passphrases set with this utility don't expire unless the --forget option is used to explicitly clear them from the cache --- or gpg-agent is either re

seeding agent cache with gpg-preset-passphrase does not seem to work

2009-09-25 Thread Andrew Thompson
Greetings gnupg-users, I'm trying to seed gnupg-agent using the not-so-majikal gpg-preset-passphrase tool. Emphasis on *trying* - it's not working atm (yet?) All the gory details follow bellow, but in a nutshell, this is what I think is happening: * use of gpg-preset-passphrase re