Skip to content

Instantly share code, notes, and snippets.

@astra137
Last active March 26, 2023 22:04
Show Gist options
  • Save astra137/6fe578bca51163a8cfdeb53aa2efb083 to your computer and use it in GitHub Desktop.
Save astra137/6fe578bca51163a8cfdeb53aa2efb083 to your computer and use it in GitHub Desktop.
# https://learn.microsoft.com/en-us/windows/wsl/filesystems#run-windows-tools-from-linux
# Disclaimer: I have no idea what the performance implications of this are.
# wsl -u root
ln -s "/mnt/c/Program Files/OpenSSH/ssh.exe" /usr/local/bin/ssh
ln -s "/mnt/c/Program Files/OpenSSH/scp.exe" /usr/local/bin/scp
ln -s "/mnt/c/Program Files/OpenSSH/ssh-add.exe" /usr/local/bin/ssh-add
ln -s "/mnt/c/Program Files/OpenSSH/ssh-keygen.exe" /usr/local/bin/ssh-keygen
ln -s "/mnt/c/Program Files/OpenSSH/ssh-keyscan.exe" /usr/local/bin/ssh-keyscan
@astra137
Copy link
Author

astra137 commented Jan 27, 2023

Tested with OpenSSH_for_Windows_9.1p1, Windows SSH agent service, and FIDO2 USB authenticator keys.

As an aside, I am thrilled to remove my previous solution with npiperelay and socat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment