Created
March 7, 2015 02:03
-
-
Save todd-a-jacobs/46e3eeac134d96dace9f to your computer and use it in GitHub Desktop.
Extract an OpenSSH public key from an OpenPGP authentication key stored on a Yubikey NEO.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo 'SSH Public Key for Yubikey NEO' | |
echo '------------------------------' | |
gpgkey2ssh $( | |
gpg --card-status 2>&1 | | |
pcregrep -o '^Authentication.*\K.{9}$' | | |
tr -d ' ' | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment