Skip to main content
Aug 30, 2023 6:01 AM UTC
Question

Using SSH keys in WSL2 command line

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

Sep 17, 2023 7:44 AM UTC

Can anyone help with this?

Sep 19, 2023 12:44 PM UTC

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

Sep 26, 2023 5:04 PM UTC

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/