Bug 1751 - ssh-add -s /usr/lib/opensc-pkcs11.so does not work
Summary: ssh-add -s /usr/lib/opensc-pkcs11.so does not work
Status: CLOSED WORKSFORME
Alias: None
Product: Portable OpenSSH
Classification: Unclassified
Component: Smartcard (show other bugs)
Version: 5.4p1
Hardware: amd64 Linux
: P2 normal
Assignee: Assigned to nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-08 23:41 AEST by jmpoure
Modified: 2010-08-27 10:27 AEST (History)
1 user (show)

See Also:


Attachments
/home/djm/sshd-subsys-req-log-user.diff (601 bytes, patch)
2010-06-18 14:25 AEST, Damien Miller
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description jmpoure 2010-04-08 23:41:18 AEST
Dear friends,

I am using the latest version of OpenSC and cvs version of OpenSSH.

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

OpenSC is set to maximum debugging. There is no trace of communication of ssh-add with OpenSC.

Kind regards,
François
Comment 1 Damien Miller 2010-04-09 11:04:57 AEST
Could you please try running you agent with the '-d' flag to place it into debugging mode and retry the ssh-add? You might need to copy and manually set the SSH_AUTH_SOCK environment variable for ssh-add.
Comment 2 Damien Miller 2010-04-23 11:01:58 AEST
ping. Did you try the agent in debug mode?
Comment 3 Damien Miller 2010-06-18 14:25:59 AEST
Created attachment 1871 [details]
/home/djm/sshd-subsys-req-log-user.diff

log username on subsystem request line
Comment 4 Damien Miller 2010-06-18 14:26:50 AEST
Comment on attachment 1871 [details]
/home/djm/sshd-subsys-req-log-user.diff

oops, wrong bug for this patch.
Comment 5 Damien Miller 2010-07-19 13:20:07 AEST
No reply to request for a debug trace == no bug.
Comment 6 Darren Tucker 2010-08-27 10:27:55 AEST
With the release of OpenSSH 5.6p1 this bug is now considered closed.  If you have further problems please reopen or file a new bug as appropriate.