1 |
On Wednesday, 17 January 2018 13:51:20 GMT thelma@×××××××××××.com wrote: |
2 |
> On 01/16/2018 11:47 PM, Alexander Ben Nasrallah wrote: |
3 |
> > On Tue, Jan 16, 2018 at 10:51:40PM -0700, thelma@×××××××××××.com wrote: |
4 |
> >> When I try to decrypt a file I get: |
5 |
> >> |
6 |
> >> gpg2 text.asc |
7 |
> >> ... |
8 |
> >> gpg: public key decryption failed: No pinentry |
9 |
> >> gpg: decryption failed: No secret key |
10 |
> >> |
11 |
> >> app-crypt/pinentry-1.0.0-r2 is installed |
12 |
> > |
13 |
> > Sometime you have to set one of the following. |
14 |
> > |
15 |
> > # PIN entry program |
16 |
> > pinentry-program /usr/bin/pinentry-curses # no X |
17 |
> > pinentry-program /usr/bin/pinentry-qt |
18 |
> > pinentry-program /usr/bin/pinentry-kwallet |
19 |
> > pinentry-program /usr/bin/pinentry-gtk-2 |
20 |
> > |
21 |
> > to whatever suits you in ~/.gnupg/gpg-agent.conf. |
22 |
> > |
23 |
> > Hope that helps. |
24 |
> |
25 |
> OK, "gpg2 text.asc" it works now at the computer terminal but when I |
26 |
> log-in over "ssh" |
27 |
> it still giving me same error. |
28 |
|
29 |
Have you logged in as a user which has a key pair configured on the PC? |
30 |
|
31 |
|
32 |
> gpg2 text.asc |
33 |
> ... |
34 |
> gpg: public key decryption failed: End of file |
35 |
> gpg: decryption failed: No secret key |
36 |
|
37 |
This says you don't have a private key configured. |
38 |
|
39 |
|
40 |
> In my other boxes I don't have any entry in ~/.gnupg/gpg-agent.conf |
41 |
> and it works OK even over ssh. |
42 |
> |
43 |
> Joseph |
44 |
|
45 |
An entry like those suggested for pinentry would be required for *GUI* |
46 |
applications to know which front end to use. |
47 |
|
48 |
-- |
49 |
Regards, |
50 |
Mick |