1 How to use smartcards with OpenSSH?
3 OpenSSH contains experimental support for authentication using Cyberflex
4 smartcards and TODOS card readers, in addition to the cards with PKCS#15
5 structure supported by OpenSC.
7 WARNING: Smartcard support is still in development.
8 Keyfile formats, etc are still subject to change.
10 To enable sectok support:
14 Sources and instructions are available from
15 http://www.citi.umich.edu/projects/smartcard/sectok.html
17 (2) enable sectok support in OpenSSH:
19 $ ./configure --with-sectok[=/path/to/libsectok] [options]
21 (3) load the Java Cardlet to the Cyberflex card:
25 sectok> jload /usr/libdata/ssh/Ssh.bin
28 (4) load a RSA key to the card:
30 Please don't use your production RSA keys, since
31 with the current version of sectok/ssh-keygen
32 the private key file is still readable.
34 $ ssh-keygen -f /path/to/rsakey -U <readernum, eg. 0>
36 In spite of the name, this does not generate a key.
37 It just loads an already existing key on to the card.
41 Change the card password so that only you can
49 This prevents reading the key but not use of the
50 key by the card applet.
52 Do not forget the passphrase. There is no way to
55 IMPORTANT WARNING: If you attempt to login with the
56 wrong passphrase three times in a row, you will
59 To enable OpenSC support:
63 Sources and instructions are available from
64 http://www.opensc.org/
66 (2) enable OpenSC support in OpenSSH:
68 $ ./configure --with-opensc[=/path/to/opensc] [options]
70 (3) load a RSA key to the card:
74 Common smartcard options:
76 (1) tell the ssh client to use the card reader:
78 $ ssh -I <readernum, eg. 0> otherhost
80 (2) or tell the agent (don't forget to restart) to use the smartcard:
82 $ ssh-add -s <readernum, eg. 0>
85 Sat Apr 13 13:48:10 EEST 2002