> To start the agent you need to add the --daemon argument.  For
> testing you may use this:
> 
> gpg-agent --use-standard --daemon sh
> 
> which opens a new shell and sets up everything.  You need to make
> sure that no other agent is running and controlling the card.
> 
> You should also unset the GPG_AGENT_INFO ebvar which might have
> been set by another script.

I tried this:

david@david-desktop-debian:~$ unset GPG_AGENT_INFO
david@david-desktop-debian:~$ gpg-agent --use-standard --daemon sh
gpg-agent[7657]: a gpg-agent is already running - not starting a new one
david@david-desktop-debian:~$ pkill gpg-agent
david@david-desktop-debian:~$ gpg-agent --use-standard --daemon sh
$ gpg2 --card-status
gpg: selecting openpgp failed: Card error
gpg: OpenPGP card not available: Card error
$






-- 
Thanks,
David Robertson.

da...@davidr.me  |  djpeterrobert...@gmail.com

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to