Skip to content

Instantly share code, notes, and snippets.

Yubikey GPG inside WSL2

  1. Install GPG4Win.
  2. Start up Kleopatra (a UI tool from 1) and make sure your YubiKey is loaded there.
    • You can also add GPG4Win to Startup folder using a link with this Target:
      "C:\Program Files (x86)\GnuPG\bin\gpg-connect-agent.exe" /bye
      
      This will only load the agent at Startup, and you won't be bothered by any UI or tray agent.
  3. Download wsl2-ssh-pageant into your Windows %userprofile%/.ssh directory (Windows dir is important for performance).

Keybase proof

I hereby claim:

  • I am richbayliss on github.
  • I am richbayliss (https://keybase.io/richbayliss) on keybase.
  • I have a public key whose fingerprint is 782E E75C 5CC3 D364 5CC5 0F46 ADDF 810A F459 087B

To claim this, I am signing this object:

FROM balenalib/armv7hf-debian:buster AS kernel-builder
RUN apt-get update && apt-get install -y \
build-essential \
i2c-tools \
wget \
alsa-utils \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ARG HEADERS_URL="https://files.balena-cloud.com/images/raspberrypi3/2.47.0%2Brev1.prod/kernel_modules_headers.tar.gz"