Skip to content

Instantly share code, notes, and snippets.

@dstritzel
dstritzel / GPGSSH.md
Last active July 16, 2019 17:28
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

Keybase proof

I hereby claim:

  • I am dstritzel on github.
  • I am dstritzel (https://keybase.io/dstritzel) on keybase.
  • I have a public key whose fingerprint is 8873 289F E898 3833 CECA BA61 A0F5 7A9A 986A 91C0

To claim this, I am signing this object:

set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'