Enabling smart card PIN cache ?

Bob Dunlop bob at xyzzy.org.uk
Fri Sep 8 12:04:22 CEST 2006


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.

-- 
        Bob Dunlop



More information about the Gnupg-users mailing list