The feature has been added in revision r5373 and will be available in pcsc-lite version 1.6.5.
- pcscd is running on the remote terminal, where the smart card reader is connected.
- SSH is used to redirect the pcscd socket
/var/run/pcscd/pcscd.commfrom the client terminal to a file on the server and then used by the
- On the server each client session must have its own socket to a different pcscd running on different terminals. So the file is located in the user home directory:
pcscdside the socket
/var/run/pcscd/pcscd.commis redirected by ssh.
libpcsclite.soside the redirection is done by configuring the environment variable
$ export PCSCLITE_CSOCK_NAME=$HOME/.pcscd.comm $ the_program
IssuesThis setup cannot use the auto start feature. The auto start feature allows to start the
pcscddaemon only when the
libpcsclite.sois used by an application. Since the
libpcsclite.soare now on two different machines it is a bit more complex than just fork+exec. The
libpcsclite.sowould have to start
pcscdon a different machine. This is possible but is not implemented.
ConclusionThis feature could also be used outside of Estobuntu and LTSP.
SSH does not, natively, redirect a Unix domain socket to a remote Unix domain socket. But maybe a simple tool exists for doing just that. If you know something like that please add a comment. One problem is that Unix domain socket can do more than Internet sockets (like transfer a file handle with SCM_RIGHTS or Unix credentials with SCM_CREDENTIALS), but pcsc-lite does not use these services.