Forum Discussion

Former Member's avatar
Former Member
3 years ago

Use 1password to manage ssh keys in WSL

I have a Windows laptop, but use the WSL for development.

How can I use 1password to manage ssh keys for me for GitHub?

The document https://developer.1password.com/docs/ssh/agent assumes you're using a Windows app and then using ssh keys on Windows. However, I am using the Windows app but ssh keys in Linux


1Password Version: 8.10.5
Extension Version: Not Provided
OS Version: windows 11 pro
Browser:_ firefox

5 Replies

  • Former Member's avatar
    Former Member

    @marcogorelli we're looking into adding this to our official docs.

  • Former Member's avatar
    Former Member

    any chance this could be added to the docs please?

  • Former Member's avatar
    Former Member

    Thanks for sharing your solution and blogpost, @justinbarclay! Glad to hear it resolved your issue, @marcogorelli.

  • Former Member's avatar
    Former Member

    This worked perfectly, thank you so much!

    In summary, I followed the windows instructions, and then, in wsl, in ~/.gitconfig, I put

    [core]
    sshCommand = "ssh.exe"

  • Former Member's avatar
    Former Member

    I talk about my experience of getting 1Password working with WSL2 https://justinbarclay.ca/posts/crossing-the-void-with-1password-and-wsl2/, but the TLDR is to call the Windows version of SSH directly in your git config

    [core]
    sshProgram = "ssh.exe"