multiple instances of gpg-agent

Jean-David Beyer jeandavid8 at verizon.net
Thu May 21 04:37:19 CEST 2015


On 05/19/2015 12:11 PM, Werner Koch wrote:
> On Mon, 18 May 2015 14:38, jeandavid8 at verizon.net said:
> 
>> I run Red Hat Enterprise Linux 6 and I get lots of them too. I just
>> kill them once in a while, but surely that is not ideal.
> 
> The man pages gives hints on how to avoid starting several
> instances of gpg-agent.  You should start it in your ~/.xsession script:
> 
>   gpg-agent --daemon --enable-ssh-support \
>             --write-env-file "$@{HOME@}/.gpg-agent-info"

I tried this and it would not work. No such file or directory.

I removed the @ signs and then that part worked.
> 
> and for each login shell you run this:
> 
>   if [ -f "${HOME}/.gpg-agent-info" ]; then
>     . "${HOME}/.gpg-agent-info"
>     export GPG_AGENT_INFO
>     export SSH_AUTH_SOCK
>   fi

I put that into .bashrc and it seems to work.

Thank you.
> 
> However it is easier to put "use-standard-socket" into
> ~/.gnupg/gpg-agent.conf and let gpg start gpg-agent as needed.  This is
> the same procedure as used by 2.1 and which has always used with 2.0 on
> Windows (where use-standard-socket is the default).
> 
> 
> Salam-Shalom,
> 
>    Werner
> 


-- 
  .~.  Jean-David Beyer          Registered Linux User 85642.
  /V\  PGP-Key:166D840A 0C610C8B Registered Machine  1935521.
 /( )\ Shrewsbury, New Jersey    http://linuxcounter.net
 ^^-^^ 22:35:01 up 19 days, 6:26, 2 users, load average: 4.61, 4.47, 4.34



More information about the Gnupg-users mailing list