1 How to use smartcards with OpenSSH?
3 OpenSSH contains experimental support for authentication using
4 Cyberflex smartcards and TODOS card readers. To enable this you
7 (1) enable SMARTCARD support in OpenSSH:
9 $ ./configure --with-smartcard [...]
12 (2) If you have used a previous version of ssh with your card, you
13 must remove the old applet and keys.
17 sectok> junload Ssh.bin
22 (3) load the Java Cardlet to the Cyberflex card and set card passphrase:
26 sectok> jload /usr/libdata/ssh/Ssh.bin
28 Enter new AUT0 passphrase:
32 Do not forget the passphrase. There is no way to
35 IMPORTANT WARNING: If you attempt to login with the
36 wrong passphrase three times in a row, you will
39 (4) load a RSA key to the card:
41 $ ssh-keygen -f /path/to/rsakey -U 1
42 (where 1 is the reader number, you can also try 0)
44 In spite of the name, this does not generate a key.
45 It just loads an already existing key on to the card.
47 (5) tell the ssh client to use the card reader:
51 (6) or tell the agent (don't forget to restart) to use the smartcard:
55 (7) Optional: If you don't want to use a card passphrase, change the
56 acl on the private key file:
60 sectok> acl 0012 world: w
65 If you do this, anyone who has access to your card
66 can assume your identity. This is not recommended.
69 Tue Jul 17 23:54:51 CEST 2001
71 $OpenBSD: README.smartcard,v 1.8 2002/03/26 18:56:23 rees Exp $