Skip to content

Instantly share code, notes, and snippets.

@dstritzel
Last active July 16, 2019 17:28
Show Gist options
  • Save dstritzel/925d6b8dc46f5eb6681fbeb2adfd3cef to your computer and use it in GitHub Desktop.
Save dstritzel/925d6b8dc46f5eb6681fbeb2adfd3cef to your computer and use it in GitHub Desktop.
Quickly add gpg to a box for ssh.
  1. Export subkey with authentication and import it on the box you need. Check Keybase encrypted files.
  2. gpg -K --with-keygrip
  3. put keygrip id in .gnupg/sshcontrol
  4. add enable-ssh-support to .gnupg/gpg-agent.conf
  5. add the code block below to your shell's rc script.
  6. restart terminal or re-source it
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment