Skip to main content
August 30, 2023
Question

Using SSH keys in WSL2 command line

  • August 30, 2023
  • 3 replies
  • 425 views

Hi,
I've set up WSL2 with Ubuntu 22.04 and I created a few SSH keys for GitHub. But now I do not know how could I use these keys in command line in WSL2 Am I supposed to install 1Password Linux command line tools inside WSL2? How do I then integrate the tools with git inside WSL2?

Thank you for your help.


1Password Version: 8.0.13
Extension Version: 2.14.1
OS Version: Windows 10/WSL2
Browser: Firefox

3 replies

September 17, 2023

Can anyone help with this?

September 19, 2023

I'm also interested in this topic. Can we use the 1P SSH Agent in WSL2 without third-party tools/scripts?

September 26, 2023

All you have to do is alias ssh and ssh-add to their Windows equivalents, ssh.exe and ssh-add.exe. If you're looking to use ssh with git it does require a bit more work:
https://justinbarclay.ca/posts/1password-across-the-void/