public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How does ssh know to use "pinentry"?
Date: Sun, 6 Jul 2014 20:09:19 +0100	[thread overview]
Message-ID: <201407062009.36913.michaelkintzios@gmail.com> (raw)
In-Reply-To: <CAPi0psvMu5+4cpw2qZ1kqZE84F_sfbvWq9eHrC7rvnqB1Xp1CA@mail.gmail.com>

[-- Attachment #1: Type: Text/Plain, Size: 2821 bytes --]

On Sunday 06 Jul 2014 16:29:03 Chris Stankevitz wrote:
> On Sun, Jul 6, 2014 at 3:25 AM, Rich Freeman <rich0@gentoo.org> wrote:
> > Typically they are launched from a bash profile, or an X11 startup
> > script.  KDE/Gnome look like they have it in their default scripts.
> > Just grep -r gpg-agent /etc and you'll find where it is being loaded
> > if you didn't add them to your own startup scripts in /home.
> 
> Rich,
> 
> Thank you again.  My bash history shows ssh-agent being executed in
> the past, but I'm still not sure where gpg-agent came from.

ssh-agent and gpg-agent are part of ssh and gnupg:

$ qfile /usr/bin/gpg-agent
app-crypt/gnupg (/usr/bin/gpg-agent)

They are usually started by the Desktop Environment startup scripts.

I start gpg-agent using ~/.xsession:
===================================
if [ -x /usr/bin/gpg-agent ]; then
        kill $(ps ux | awk '/gpg-agent/ && !/awk/ {print $2}') >/dev/null 2>&1
fi

if [ -x /usr/bin/gpg-agent ]; then
  eval "$(/usr/bin/gpg-agent --daemon)"
fi
===================================

> > Using gpg-agent is considered a best practice in general, so I
> > wouldn't go getting rid of it unless it is really causing you
> > problems.  You haven't mentioned what issue you're actually having
> > with it/pinentry/etc.
> 
> FYI pinentry frustrates me because:
> 
> 1. pinentry-gtk and pinentry-qt do not allow me to "paste" my
> passphrase.  My passphrase is difficult to type.  I keep my passphrase
> in keepass.
> 
> 2. Supposedly pinentry-curses will let me paste; however,
> pinentry-curses doesn't work.
> https://www.gnupg.org/documentation/manuals/gnupg/Common-Problems.html
> suggests that my problem is a misconfigured GPG_TTY environment
> variable.  At this point though I'm not even interested in using it
> anymore.

Interesting - I don't seem to have a GPG_TTY environment variable set up 
either:

$ echo $GPG_TTY
$


> At the moment pinentry is no longer installed on my system so these
> "problems" should be gone.  If/when I understand what is going on,
> I'll reinstall them.
> 
> FYI I removed pinentry with:
> 
> tail /etc/portage/package.use
> # 2014-07-05 Avoid pinentry
> dev-vcs/git -gpg
> mail-client/thunderbird -crypt
> 
> tail /etc/portage/package.mask
> # 2014-07-05 Avoid password entry program that disallows paste
> app-crypt/pinentry

I think that the idea of keeping your passphrase in the clipboard is frowned 
upon for security reasons.  Not only because of any potential memory leaks, 
but because you may inadvertently paste it in GUI fields/areas you were not 
meant to:

Only a couple of days ago a friend ended up pasting his passphrase on an IM 
client for all to see, as he was trying to login into a system ...  O_O

-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2014-07-06 19:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-06  1:41 [gentoo-user] How does ssh know to use "pinentry"? Chris Stankevitz
2014-07-06  2:57 ` Rich Freeman
2014-07-06  3:42   ` Chris Stankevitz
2014-07-06 10:25     ` Rich Freeman
2014-07-06 15:29       ` Chris Stankevitz
2014-07-06 19:09         ` Mick [this message]
2014-07-07  0:33           ` Chris Stankevitz
2014-07-06 20:32 ` Alan McKinnon
2014-07-07  0:40   ` Chris Stankevitz
2014-07-07  0:45     ` Rich Freeman
2014-07-07  1:18       ` Chris Stankevitz
2014-07-07  1:30         ` Rich Freeman
2014-07-07  8:05     ` Alan McKinnon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201407062009.36913.michaelkintzios@gmail.com \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox