Hi,
I’ve written a service (with root privileges) which connects to ssh server available on the network, and creates
mount points to access sftp via fuse to share files. There is no user action required, all goes automatic.
I would like to know how I can use nitrokey for this. I know on the nkey keys are stored which are usable for ssh authentication. Now I’ve got some questions:
a. how does my daemon “know” to which user the nitrokey belongs. Linux is a multiuser system, and (espec. with multiseat) more users can use the system at the same time.
b. how do I read the right key from the nkey? Which call (from api) do I have to use? Or do I have to connect to another daemon which handles these usb devices?
Stef Bon