Using ssh-agent allows to use smartcards easily, as you just enter your PIN code once in a session.
Adding keys from PKCS#11 provider
If you are running OpenSSH in a shell environment, to load keys, type:
GNU/Linux:
Mac OS X:
Enter PIN code to authenticate.
Now verify that keys have been loaded:
2048 41:16:d5:c0:37:*************:75:d6:f1:81:dc /usr/lib/opensc-pkcs11.so (RSA)
You will be able to use SSH, SCP, SFTP without entering PIN code again.
Now you may also comment this line, which becomes useless:
as ssh-agent will load RSA keys from smartcards.
Removing keys provided by PKCS#11 provider
Using the usual command does not work:
This will remove all identities, but the smartcard system will be left in a unusable state.
Instead, you should run:
GNU/Linux:
Mac OS X:
Printer-friendly version- 3455 reads
PDF version




