Created
June 19, 2025 14:58
-
-
Save levpa/f357062dcd57e6e7efa992163cde3733 to your computer and use it in GitHub Desktop.
WSL2 with 1Password commit signing setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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