Skip to content

Instantly share code, notes, and snippets.

@levpa
Created June 19, 2025 14:58
Show Gist options
  • Save levpa/f357062dcd57e6e7efa992163cde3733 to your computer and use it in GitHub Desktop.
Save levpa/f357062dcd57e6e7efa992163cde3733 to your computer and use it in GitHub Desktop.
WSL2 with 1Password commit signing setup
# create SSH key in Personal vault, upload them to github
# ~/.gitconfig in WSL2 (from 1Password): any SSH Key settings -> Configure commit signing -> WSL -> copy snippet
[user]
signingkey = ssh-ed25519 AAAAC.......
[gpg]
format = ssh
[gpg "ssh"]
program = "/mnt/c/Users/<user_name>/AppData/Local/1Password/app/8/op-ssh-sign-wsl"
[commit]
gpgsign = true
[core]
sshCommand = ssh.exe
# Windows side OpenSSH configuration:
USER=<user_name>
mkdir /mnt/c/users/${USER}/.ssh
touch /mnt/c/users/${USER}/.ssh/known_hosts
ssh-keyscan.exe github.com >> /mnt/c/users/${USER}/.ssh/known_hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment