Skip to content

Instantly share code, notes, and snippets.

@Che4ter
Created February 23, 2018 10:23
Show Gist options
  • Save Che4ter/61134da856301cdb20a99e51aa8511d7 to your computer and use it in GitHub Desktop.
Save Che4ter/61134da856301cdb20a99e51aa8511d7 to your computer and use it in GitHub Desktop.
Set up yubikey neo to ccid eject mode
$ ykneomgr -M 1
# Re-plug the device
$ opensc-tool -s '00 a4 04 00 08 a0 00 00 05 27 20 01 01' \
-s '00 01 11 00 04 81 0f 02 00'
#81 = mode 1 = CCID only (other modes not working togheter with ejcet on my neo)
#02 = timeout
#script to restore
until ykneomgr -M0 2&> /dev/null ; do sleep 0.1 ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment