From: Andreas K. <ke...@un...> - 2016-05-20 13:25:24
|
Hello, Am Fri, 20 May 2016 00:18:48 +0000 schrieb "Gyurgyik, Matthew S." <gyu...@or...>: > Hello. > > First, let me say I’m new to smart cards and I haven’t been able to > find much documentation on how they work. I’m looking for some > education, if there is a better place to post this question, please > let me know. > > I can add keys provided by my smart card to ssh-agent with > > $ ssh-add -s /Library/OpenSC/lib/opensc-pkcs11.so > > However, if I remove the card from the reader and then reinsert it I > have to re-add the keys > > $ ssh-add -e /Library/OpenSC/lib/opensc-pkcs11.so > $ ssh-add -s /Library/OpenSC/lib/opensc-pkcs11.so > > This happens on both OS X and RHEL7. I am assuming this expected > behavior. Can someone explain (or point me to documentation) why it > is necessary to remove the keys and re-add them? > here I simply use $ cat .ssh/config Host xxx PKCS11Provider /usr/local/lib/opensc-pkcs11.so xxx is the host I use the private key to connect to. No commands for card removal/reinsertion needed. Regards, Andreas Kemnade |