1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA256 |
3 |
|
4 |
On 08/10/2015 06:15 AM, Doug Goldstein wrote: |
5 |
> On Mon, Aug 10, 2015 at 3:36 AM, Chí-Thanh Christopher Nguyễn |
6 |
> <chithanh@g.o> wrote: |
7 |
>> Doug Goldstein schrieb: |
8 |
>>> gpg: cancelled by user gpg: skipped "0xA2BC03DC87ED1BD4": |
9 |
>>> Operation cancelled gpg: signing failed: Operation cancelled |
10 |
>>> error: gpg failed to sign the data |
11 |
>> |
12 |
>> There was an IRC discussion yesterday about this. Probably your |
13 |
>> pinentry tries to talk to a GUI and fails. Try: |
14 |
>> |
15 |
>> unset DISPLAY export GPG_TTY=$(tty) |
16 |
>> |
17 |
>> to make it fall back to curses, or use "eselect pinentry" to |
18 |
>> select curses as default. |
19 |
>> |
20 |
>> Interestingly, git requires GPG_TTY if eselect-pinentry is set to |
21 |
>> gtk-2 or qt4, but repoman doesn't. |
22 |
>> |
23 |
>> |
24 |
>> Best regards, Chí-Thanh Christopher Nguyễn |
25 |
>> |
26 |
>> |
27 |
> |
28 |
> $ eselect pinentry show Current pinentry binary implementation: |
29 |
> pinentry-curses |
30 |
> |
31 |
> $ eselect pinentry list Available pinentry binary implementations: |
32 |
> [1] pinentry-curses * |
33 |
> |
34 |
> Its the only version I've got on this machine. The box is headless |
35 |
> and I ssh into and I use keychain to manage my SSH and GPG agent. |
36 |
> |
37 |
What's your keychain line look like in your .bashrc/.bash_profile? |
38 |
Here's the relevant portion of mine. I was also having problems with |
39 |
it until I changed the order of the arguments: |
40 |
|
41 |
[snip] |
42 |
/usr/bin/keychain --agents ssh,gpg ~/.ssh/id_rsa ${GPGKEY} |
43 |
source ~/.keychain/sporkbox-sh > /dev/null |
44 |
source ~/.keychain/sporkbox-sh-gpg > /dev/null |
45 |
[snip] |
46 |
|
47 |
For some reason, it's important that ssh comes before gpg. I got this |
48 |
advice straight from drobbins, so unless it's changed, that's the way |
49 |
to get it working. |
50 |
- -- |
51 |
Daniel Campbell - Gentoo Developer |
52 |
OpenPGP Key: 0x1EA055D6 @ hkp://keys.gnupg.net |
53 |
fpr: AE03 9064 AE00 053C 270C 1DE4 6F7A 9091 1EA0 55D6 |
54 |
-----BEGIN PGP SIGNATURE----- |
55 |
Version: GnuPG v2 |
56 |
|
57 |
iQIcBAEBCAAGBQJVyPVAAAoJEAEkDpRQOeFwOb4P/1o4qUuUTstuz5A57V9bGX97 |
58 |
D6sWioMhjjRX//951064Q7sHmQbb3CbDpUanPg0Np0devXai4OipuQCKf773OkVI |
59 |
iFCHH1vm9U5qi70O7ylBKpjzfI5SLS/evlFOmP9e/wmrp482FsuODM+VqSx6i1Yb |
60 |
P1wIbnttNJI/qFu23Y6XkE3cIwrzXWUrjm1ROFWir1x/xy9SwoWe3hcdy/HNVokS |
61 |
jlM+RJL9bByEioWQXnxR0p2VLHr45bGXtBj+8m4rciAFFiqbNLaoGWt6+fpCR36g |
62 |
YYLYPiZ4XTWUamTBtsIVBwx+t0E2oj9AReejKjIxbysUFyd0KyrVqg4Ri+YMdr0x |
63 |
4j1uR9MZ39ItKjlGIncizPNjc7IAUDubxt8tuY4ndayr5lgtML4vGSbb2XDd2H3A |
64 |
tlAS5QbV0k+eQQak8Mff0UmRfQE/IsWaPKe21ymBXI7wQPhrXCAZ+LwqdvTtiYJT |
65 |
bFzezJ9HKTscHrRywDNPmzIDER6y6tkOdCkhjFpOGt+9zvadTN3Mt0ZJSiknZasT |
66 |
35irU1s+ulFFgczW8FBm0kliFRJIf7n8BbyJpsMcIE4qekTiwRLi2x4VbrFVDn1v |
67 |
/0R8sGAWNJRcSv0e9OI7oLfbT76seP+Bh5nK6Vt4szDzm+XCiPeQEZc8jCqwc9M0 |
68 |
PigIGXV12N6k/4usjY8e |
69 |
=OUvd |
70 |
-----END PGP SIGNATURE----- |