If I run ssh-add -L while the OpenPGP card is unplugged
scdaemon becomes unusable until it is restarted.
0. gpg-agent --enable-ssh-support
- card inserted
ssh-add -L
[shows SSH key]
- remove card
ssh-add -L
[shows no keys]
- insert card
ssh-add -L
[still shows no keys]
At this point all gpg2 commands that run through the agent fail until it
restarted. Use of gpg1 commands bypass the agent and work correctly.
If I repeat the steps but skip running "ssh-add -L" while the card is unplugged,
everything works fine
The last lines of the log say:
2010-06-12 23:43:38 scdaemon[16497] sending signal 12 to client 16477
2010-06-12 23:43:53 scdaemon[16497] PC/SC RESET failed: invalid value
(0x80100011)
The last error ("invalid value") is presumably the line that makes scdaemon
unusable.