Skip to content

Instantly share code, notes, and snippets.

@ryankurte
Last active August 29, 2015 14:20
Show Gist options
  • Save ryankurte/572f16095ce04a5cd77e to your computer and use it in GitHub Desktop.
Save ryankurte/572f16095ce04a5cd77e to your computer and use it in GitHub Desktop.
SSH using GPG as an authentication agent
#!/bin/bash
SSH_AUTH_SOCK=~/.gnupg/S.gpg-agent.ssh scp $1
#!/bin/bash
# See http://forum.yubico.com/viewtopic.php?f=26&t=1171
echo "enable-ssh-support" >> ~/.gnupg/gpg-agent.conf
#!/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