Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-17 Thread Alexander Ben Nasrallah
On Wed, Jan 17, 2018 at 07:30:15AM -0700, the...@sys-concept.com wrote:
> On 01/17/2018 07:20 AM, Mick wrote:
>> On Wednesday, 17 January 2018 13:51:20 GMT the...@sys-concept.com wrote:
>>> OK, "gpg2 text.asc" it works now at the computer terminal but when I
>>> log-in over "ssh"
>>> it still giving me same error.
>>
>> Have you logged in as a user which has a key pair configured on the PC?
>
> I just copied 'scp' entire subfolder ".gnupg/" from one system to
> another.  It works when I click on the file at the computer but not over
> ssh.
>

Have you tried pinentry-curses? I'm not sure if qt version works over
ssh.




Re: [gentoo-user] gpg2 - error gpg: public key decryption failed: No pinentry

2018-01-16 Thread Alexander Ben Nasrallah
On Tue, Jan 16, 2018 at 10:51:40PM -0700, the...@sys-concept.com wrote:
> When I try to decrypt a file I get:
> 
> gpg2 text.asc
> ...
> gpg: public key decryption failed: No pinentry
> gpg: decryption failed: No secret key
> 
> app-crypt/pinentry-1.0.0-r2 is installed

Sometime you have to set one of the following.

# PIN entry program
pinentry-program /usr/bin/pinentry-curses # no X
pinentry-program /usr/bin/pinentry-qt
pinentry-program /usr/bin/pinentry-kwallet
pinentry-program /usr/bin/pinentry-gtk-2

to whatever suits you in ~/.gnupg/gpg-agent.conf.

Hope that helps.