ssh-add -s /usr/lib/opensc-pkcs11.so does not work

François Pérou francois.perou at free.fr
Thu Apr 8 20:00:23 EST 2010


Dear friends,

First, thanks for helping me on ssh default option for smartcards. I
recompiled SSH from CVS and it seems to work.

I still have problems with:
ssh-add -s /usr/lib/opensc-pkcs11.so 
Enter passphrase for PKCS#11: (I enter PIN code)
SSH_AGENT_FAILURE
Could not add card: /usr/lib/opensc-pkcs11.so

pkcs11-tool --slot 1 -O
Public Key Object; RSA 2048 bits
  label:      Public Key
  ID:         7645d913d5***********54816ff02324c23a7ebf4
  Usage:      none
Certificate Object, type = X.509 cert
  label:      CAcert WoT User's Root CA ID
  ID:         7645d913d5***********54816ff02324c23a7ebf4
Public Key Object; RSA 2048 bits
  label:      Public Key
  ID:         6d0534d04a***********49967a2e33571deec58
  Usage:      none
Certificate Object, type = X.509 cert
  label:      StartCom Free Certificate Member's StartCom Ltd. ID
  ID:         6d0534d04a***********49967a2e33571deec58

ps aux | grep ssh-agent
jmpoure   2520  0.0  0.0  20420   600 ?        Ss   09:04
0:00 /usr/bin/ssh-agent /usr/bin/gpg-agent --daemon --sh
--write-env-file=/home/jmpoure/.gnupg/gpg-agent-info-acer /usr/bin/dbus-launch --exit-with-session /usr/bin/seahorse-agent --execute gnome-session

I suspect this is not the right ssh-agent. Any idea?

Kind regards,
François



More information about the openssh-unix-dev mailing list