Skip to main content
March 14, 2022
Question

1password SSH Agent + WSL2?

  • March 14, 2022
  • 12 replies
  • 3706 views

Was wondering if any developers has had any luck configuring the newly introduced https://developer.1password.com/docs/ssh for any WSL2 work? This thing is incredible and works seamlessly! Would love to configure it for my WSL instances.

For some context, I've been using https://github.com/buptczq/WinCryptSSHAgent to configure & forward SSH_AUTH_SOCK from WSL to-and-from Windows Certificates. This works only for x509 certs on the PC or on smartcards.


1Password Version: 80600068
Extension Version: Not Provided
OS Version: Windows 11 Home

12 replies

floris_1P
1Password Employee
1Password Employee
January 11, 2024

@ChrisL8 Storing it in WSL should work if the allowed signers path is an absolute path. What does git config gpg.ssh.allowedSignersFile return? And what's the error message that you're seeing?

January 11, 2024

@floris_1P

I found if I call git.exe from Windows, then it works, which is interesting. I don't think this is a good solution though, just a data point to consider.

WSL Linux git fails:
❯ git verify-commit ff81f0477b7c55d86e991b5c3b0e799ba5b563f1 -v --raw
tree 960ce5311eade9d420f2a557d630424e1a4735a9
parent edb2f4b404a57eef4dc47aa9339bfabef69badb7
author Christen Lofland mailto:christen@lofland.net 1704381804 -0600
committer Christen Lofland mailto:christen@lofland.net 1704381804 -0600

Testing commit signing.
Could not verify signature.

Windows git works from WSL Linux:
❯ git.exe verify-commit ff81f0477b7c55d86e991b5c3b0e799ba5b563f1 -v --raw
Good "git" signature for mailto:christen@lofland.net with ED25519 key SHA256:2gc97CZMkWFFGxBFe9sPUlpSEvTf8lnIC3MBJDB4gG0
tree 960ce5311eade9d420f2a557d630424e1a4735a9
parent edb2f4b404a57eef4dc47aa9339bfabef69badb7
author Christen Lofland mailto:christen@lofland.net 1704381804 -0600
committer Christen Lofland mailto:christen@lofland.net 1704381804 -0600

Testing commit signing.