Enabling smart card PIN cache ?

Remco Post r.post at sara.nl
Fri Sep 8 13:07:45 CEST 2006


Bob Dunlop wrote:
> Hi,
> 
> Please, what am I missing ?
> 
> I'm running gpg-agent as follows:
> 
> /usr/bin/gpg-agent --enable-ssh-support --daemon /home/XXX/.xsession
> 
> and have the appropriate enviroment variables set.
> My ~/.gnupg/gpg-agent.conf contains:
> 
>     # Gpg-agent configuration
> 
>     # Enable SSH support (should be done on command line)
>     enable-ssh-support
> 
>     # Set two hour PIN cache timeouts
>     default-cache-ttl-ssh  7200
>     default-cache-ttl      7200
>     max-cache-ttl-ssh      7200
>     max-cache-ttl          7200
> 
>     # Allow setting of the PIN by an external agent
>     allow-preset-passphrase
> 
> I execute the equivalent of
> 
> echo "PRESET_PASSPHRASE <keygrip> -1 <pin>" | gpg-connect-agent
> 
> in a startup script and see no error.  Yet each and every call to
> ssh or scp prompts me for a PIN :(
> 
> 
> Please someone tell me the trick to enabling the PIN cache.
> 

gpg-agent for some reason does not cache pins for smartcards.... I've never
seen it work eiter.

-- 
Met vriendelijke groeten,

Remco Post

SARA - Reken- en Netwerkdiensten                      http://www.sara.nl
High Performance Computing  Tel. +31 20 592 3000    Fax. +31 20 668 3167
PGP Key fingerprint: 6367 DFE9 5CBC 0737 7D16  B3F6 048A 02BF DC93 94EC

"I really didn't foresee the Internet. But then, neither did the
computer industry. Not that that tells us very much of course - the
computer industry didn't even foresee that the century was going to
end." -- Douglas Adams



More information about the Gnupg-users mailing list