Forum Discussion

Former Member's avatar
Former Member
3 years ago

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

  • Former Member's avatar
    Former Member

    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/

  • lammoth's avatar
    lammoth
    Occasional Contributor

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

  • Former Member's avatar
    Former Member

    Can anyone help with this?