mhogomchungu / sirikali

A Qt/C++ GUI front end to sshfs, ecryptfs-simple, cryfs, gocryptfs, securefs, fscrypt and encfs
http://mhogomchungu.github.io/sirikali
GNU General Public License v3.0
757 stars 58 forks source link

ykchalresp for Yubikey Challenge Response #222

Open im-richard opened 1 year ago

im-richard commented 1 year ago

Just looking for a bit of information related to how Yubikey's Challenge Response is supposed to work.

When attempting to mount a drive, I select "Yubikey Challenge" and an error immediately pops up that it cannot locate the executable / library ykchalresp.

I went and downloaded the Yubikey Personalization Tool which is apparently the only utility that includes ykchalresp (Yubico says that tool is deprecated and people should use the other programs now). And then I added a new system env variable.

If I access the command prompt itself and simply type ykchalresp, it pops right up. But Sirikali itself keeps throwing the same error.

In addition, is their documentation on how to set this up server-side to where I'm connecting?

Regards

mhogomchungu commented 1 year ago

Sorry for a late reply.

When SiriKali window has focus, press CTRL+D to bring up debug window and then try again to use yukikey challence-responce feature and then look at the log window for more information when it fails to work.

dlasher commented 8 months ago

Ran into this as well on both windows and mac.

https://www.yubico.com/support/download/yubikey-personalization-tools/

Windows : You need the "command line interface" of the tool - and then place all the files from the BIN directory somewhere in your search path (windows) or add a new folder with it contained IN the search path. Because you need everything in the LIB folder too - I just created a new folder -- C:\SiriKali - and then put the BIN files and LIB files there - then you add that to the windows path for your user, and log out/in.

https://answers.microsoft.com/en-us/windows/forum/all/how-to-edit-the-user-path-environment-variable-not/e19a9519-3bdf-4aa4-a47e-f9d799bad1d3

Mac : same type of solution.. I put the BIN/* files in /usr/local/bin, then copied the files from the LIB folder into /usr/local/bin/.lib -- because that's where the debug told me it was looking.

Would be nice to handle this in a smarter way - put it in the same folder with the SiriKali app, for example.