From 3a3a27dede959ac6cec9314273c083e801090325 Mon Sep 17 00:00:00 2001 From: mlaga97 Date: Thu, 24 Nov 2022 13:30:50 -0600 Subject: [PATCH] Update 'yubikey-bootstrap.md' --- yubikey-bootstrap.md | 43 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/yubikey-bootstrap.md b/yubikey-bootstrap.md index b5e867e..297dbee 100644 --- a/yubikey-bootstrap.md +++ b/yubikey-bootstrap.md @@ -1,12 +1,37 @@ -sudo apt install scdaemon qtpass +### Install Prereqs +``` +sudo apt install git scdaemon qtpass +``` -gpg --import 5F78261B65C565041662A3B7FF8FC3C735BD4A51.asc +### Import mlaga97@gmail.com PGP key +``` +gpg --receive-keys 5F78261B65C565041662A3B7FF8FC3C735BD4A51 +``` -# Add: -# enable-ssh-support -vim .gnupg/gpg-agent.conf +### Add the following to `~/.gnupg/gpg-agent.conf` +``` +enable-ssh-support +``` -# Add: -# export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) -# gpgconf --launch gpg-agent -vim .bashrc +### Add the following to `~/.bashrc` +``` +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) +gpgconf --launch gpg-agent +``` + +### Add the following to `~/.ssh/config` +``` +Host git.mlaga97.space + Port 2222 + ProxyJump fortress.mlaga97.space +``` + +### Reload `~/.bashrc` +``` +. ~/.bashrc +``` + +### Test +``` +git clone git@git.mlaga97.space:mlaga97/public-notes +``` \ No newline at end of file