Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #174227

Re: upgraded testing and now gpg is not working

From "H.S." <hs.samix@gmail.com>
Newsgroups linux.debian.user
Subject Re: upgraded testing and now gpg is not working
Date 2016-11-06 05:00 +0100
Message-ID <sAmMG-c3-3@gated-at.bofh.it> (permalink)
References <szZn8-1Xp-5@gated-at.bofh.it> <sA37k-4xe-1@gated-at.bofh.it> <sAfLb-47w-5@gated-at.bofh.it> <sAhah-4Ry-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/05/2016 05:50 PM, Frank wrote:
> Op 05-11-16 om 21:23 schreef H.S.:
>> Still, however, decryption my file using gpg2 does not work: it does not
>> ask for my passphrase on the std in and just times out. gpg1 works
>> though.
>>
>> What am I missing?
>>
>> Package I have on my testing box:
>> $ COLUMNS=75 dpkg -l gnupg* | grep ^i
>> ii  gnupg          2.1.15-4     amd64  GNU privacy guard - a free PGP re
>> ii  gnupg-agent    2.1.15-4     amd64  GNU privacy guard - cryptographic
>> ii  gnupg-l10n     2.1.15-4     all    GNU privacy guard - localization
>> ii  gnupg1         1.4.21-1+b1  amd64  GNU privacy guard - a free PGP re
>> ii  gnupg1-curl    1.4.21-1+b1  amd64  GNU privacy guard - a free PGP re
>> ii  gnupg2         2.1.15-4     all    GNU privacy guard - a free PGP re
>
> Nothing obviously missing there, as far as I can tell.
>
> The passphrase input is handled by gnupg-agent, so that's what appears
> to be failing. It uses a 'pinentry' tool. On my system it usually pops
> up a small graphical window, but its dependency list suggests it can
> also use something terminal based if that isn't installed. There must be
> something wrong with that combination. I *think* it may be related to
> the second item mentioned here:
>
> https://www.gnupg.org/documentation/manuals/gnupg-devel/Common-Problems.html
>
>
> Do you have the GPG_TTY variable set up? I have mine in ~/.bashrc like
> this:
>
> export GPG_TTY=$(tty)
>

That was a great hint.
I tried the following.

$ GPG_TTY=$(tty) gpg -d myfile.gpg

and it popped up a graphical window asking for my passphrase. Typed in 
the phrase, entered and it decripted the file.

So, this is good and/or bad, depending on how one looks at it. What I 
*would* prefer is that on a tty it not ask me the passphrase via a 
graphical pop up and just ask me on std in.

What happens is that when I logout from my KDE session, reboot (probably 
to 'kill' gpg agen) and then login via a *virtual tty* and try to 
decrpyt the same file using gpg, gpg errors out by complaining that 
there is no secret key (this is with the GPG_TTY exported as you 
suggested). Next, when I login to my KDE session, try the same gpg 
command from a terminal, it pops up the passphrase window, which accepts 
my passphrase and decrypt the file succesfully.

So, how do I tell gpg to work on std in when on a terminal instead of 
relying on a graphical session?

Thanks.

-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

upgraded testing and now gpg is not working "H.S." <hs.samix@gmail.com> - 2016-11-05 04:00 +0100
  Re: upgraded testing and now gpg is not working Frank <zuiderduin@gmx.com> - 2016-11-05 08:00 +0100
    Re: upgraded testing and now gpg is not working "H.S." <hs.samix@gmail.com> - 2016-11-05 21:30 +0100
      Re: upgraded testing and now gpg is not working Frank <zuiderduin@gmx.com> - 2016-11-05 23:00 +0100
        Re: upgraded testing and now gpg is not working "H.S." <hs.samix@gmail.com> - 2016-11-06 05:00 +0100
          Re: upgraded testing and now gpg is not working Frank <zuiderduin@gmx.com> - 2016-11-06 07:50 +0100
            Re: upgraded testing and now gpg is not working <tomas@tuxteam.de> - 2016-11-06 10:50 +0100
              Re: upgraded testing and now gpg is not working Jörg-Volker Peetz <jvpeetz@web.de> - 2016-11-06 13:30 +0100
                [SOLVED] Re: upgraded testing and now gpg is not working "H.S." <hs.samix@gmail.com> - 2016-11-07 00:10 +0100

csiph-web