opensc/src/openssh
aet 3775b18c81 Autotools update. Add bunch of stuff to configure.in to
make building of libopensc more portable to various
operating systems.

Requires autoconf 2.52 and automake 1.5.

Add all necessary files except Makefile.in, so you still
need to run ./bootstrap though. There's not much point
adding config.guess and friends without them, maybe later.


git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@94 c6295689-39f2-0310-b995-f0e70906c6a9
2001-12-22 22:27:20 +00:00
..
.cvsignore Add opensc-ssh, pam_pkcs15-test, bas64, hst-test, lottery, p15dump, 2001-12-22 22:20:28 +00:00
Makefile.am Autotools update. Add bunch of stuff to configure.in to 2001-12-22 22:27:20 +00:00
opensc-ssh.c - updated to work with latest library version 2001-12-22 20:52:57 +00:00
openssh-3.0.2p1-patch.diff - updated to work with latest library version 2001-12-22 20:52:57 +00:00
README - updated OpenSSH support 2001-12-15 01:44:46 +00:00

Steps for your OpenSSH pleasure:

- Download, compile and install openssl (http://www.openssl.org)
- Download OpenSSH 3.0.2p1 (http://www.openssh.com)
- Apply 'openssh-3.0.2p1-patch.diff' from this directory
- Run autoconf and autoheader
- Run configure with the argument '--with-opensc'
- Change the hardcoded PIN to the one set on your card... =)
  The line to modify can be found in file scard-libsc.c.
  (This will be fixed in the future)
- Compile and install

- Extract a public key from your SmartCard in OpenSSH format
    (e.g. with 'sc-ssh -c <certificate ID> -k -o <file>')
- Transfer the public key to desired server
- Run OpenSSH with 'ssh -I <reader num>[:<certificate ID>] <host>'
    (e.g. '-I 0:45' uses first available reader and certificate with
     ID 45h, '-I 0' uses the first found certificate')

With luck you should be authenticated and ready to go. If it won't work,
try enabling debug information with the '-d' switch.

NOTE: ssh-agent should also work.

--
Juha Yrjölä <juha.yrjola@iki.fi>