Scripts to set up and use your Yubikey with PGP applet to authenticate to a SSH server.
Based on instructions from: http://forum.yubico.com/viewtopic.php?f=26&t=1171
Requires GPGTools on OSX (rather than the homebrew gpg) from: https://gpgtools.org/
Last active
August 29, 2015 14:20
-
-
Save ryankurte/572f16095ce04a5cd77e to your computer and use it in GitHub Desktop.
SSH using GPG as an authentication agent
This file contains hidden or 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
#!/bin/bash | |
SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh scp $1 |
This file contains hidden or 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
#!/bin/bash | |
# See http://forum.yubico.com/viewtopic.php?f=26&t=1171 | |
echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf | |
This file contains hidden or 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
#!/bin/bash | |
SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh ssh $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment