Skip to content

Instantly share code, notes, and snippets.

View SuperMarioSF's full-sized avatar

SuperMario SuperFans SuperMarioSF

View GitHub Profile
@SuperMarioSF
SuperMarioSF / GPG + Git SSH Authentication and Signing on Windows 10.md
Last active January 22, 2023 13:53 — forked from matusnovak/README.md
GPG + Git SSH Authentication and Signing on Windows 10

GPG + Git SSH Authentication and Signing on Windows 10

Edit (2021-10-31, SuperMarioSF):

  • fixed: missing --force for wsl-ssh-pagent, which caused not to able to launch wsl-ssh-pagent when there already file created.
  • fixed: missing guide for WinSSH ssh-add enviornment variable SSH_AUTH_SOCK. (Thanks @landfillbaby for information in original gist comment)

Introduction

This simple Gist will explain how to settup your GPG key to work for SSH authentication (with Git) and Git commit signing on Windows 10. This may seem straightforward on Linux, but there are certain tweaks needed on Windows.