I am on Ubuntu 16.04 and trying to add the certs on my CAC card using the ssh-add commands with no luck.
ssh-add -s /usr/local/lib/opensc-pkcs11.so Enter passphrase for PKCS#11: Could not add card "/usr/local/lib/opensc-pkcs11.so": agent refused operation I even tried whitelisting the key:
1) ls -al /usr/lib/x86_64-linux-gnu/*opensc* ----> Found the symlink 2) rm /usr/lib/x86_64-linux-gnu/libopensc.so.3 3) cp /usr/lib/x86_64-linux-gnu/onepin-opensc-pkcs11.so /usr/local/lib 4) cp /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so /usr/local/lib/ pkill ssh-agent ssh-agent -P /usr/local/lib/` But no dice, can you please help?
Thank you in advance