Skip to content

arquivolta/wsl-use-windows-openssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use your Windows SSH Agent in WSL2

This project sets your WSL installation to use the SSH agent built into Windows. Did you know there's an SSH Agent built into Windows? What a world!

To install

  1. Clone the repository from within WSL, to a WSL directory. This tool installs symbolic links which will be completely broken if you clone from Windows to a Windows directory.
  2. From within the cloned repository, run the following:
sudo make install

To enable the Windows SSH Agent (one-time only)

## This will show a UAC dialog
wsl-enable-ssh-agent

Then, add a key:

ssh-add     ## Here's where you put in your password, once