This project has a bunch of known issues, especially in newer versions of Windows. The above project works perfectly, doesn't have to run any extra programs on your computer, and is generally More Betterer in basically every way
This project sets up a relay for your SSH agent so that your WSL installation will use the SSH agent built into Windows. Did you know there's an SSH Agent built into Windows? What a world!
Via an Elevated PowerShell account:
Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0
sc.exe config ssh-agent start=auto
net start ssh-agentThen, add a key, in PowerShell:
ssh-add ## Here's where you put in your password, onceFirst install the dependencies, daemonize and socat:
yay -Sy daemonize socat
## or
apt install daemonize socatThen, install it:
git clone https://github.com/anaisbetts/ssh-agent-relay
cd ssh-agent-relay
sudo make installNow, open up ~/.bashrc or ~/.zshrc and add:
eval $(ssh-agent-relay)Copy your SSH keys from the Windows side over to $HOME/.ssh and you're all set