On Fri, 6 Jun 2025 09:16, Michael Richardson said: > I clearly don't want to use the pinentry, since it will do the gtk2 thing, > which I can't interact with remotely.
There are two or there ways ways: --8<---------------cut here---------------start------------->8--- $ gpg-connect-agent > /let passwd abc > /definq PASSPHRASE passwd > preset_passphrase --inquire example-cache -1 S INQUIRE_MAXLEN 480 INQUIRE PASSPHRASE OK > get_passphrase example-cache X X X OK 31323334 > # Second version using a hexified passphrase > preset_passphrase example-cache -1 616263 OK > get_passphrase example-cache X X X OK 616263 > --8<---------------cut here---------------end--------------->8--- There is also a tool which implements the above: --8<---------------cut here---------------start------------->8--- $ /usr/local/libexec/gpg-preset-passphrase -c -P ABC example-cache $ gpg-connect-agent 'get_passphrase example-cache X X X' /bye OK 414243 --8<---------------cut here---------------end--------------->8--- Shalom-Salam, Werner -- The pioneers of a warless world are the youth that refuse military service. - A. Einstein
openpgp-digital-signature.asc
Description: PGP signature
_______________________________________________ Gnupg-users mailing list [email protected] https://lists.gnupg.org/mailman/listinfo/gnupg-users
