Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
smfelsher
9 months agoOccasional Contributor
VSCode dev container and SSH
I am trying to use my SSH keys, which are stored in 1Password, in a dev container launched within VSCode.
Here is my ~/.ssh/config
```
Gitlab
Host gitlab.com
HostName gitlab.com ...
Speedbird186
9 months agoNew Contributor
Hi smfelsher,
I've been trying to resolve a similar issue, however, my setup is a little different.
My host OS is Windows and I use WSL2 for some coding. In VS Code in Windows and VS Code in WSL2, signing my commits with a key from 1Password works beautifully.
However, when I launch a devcontainer from WSL2, something's not working.
I am trying to see how your solution might help me resolve my issue, but I am not sure how to do it.
$SSH_AUTH_SOCK
in WSL2 is empty.
$SSH_AUTH_SOCK
in the devcontainer in WSL2 contains a socket referencing
ssh-add -l
in WSL2 returns an error: Could not open a connection to your authentication agent.
ssh-add -l
in the devcontainer in WSL returns the same list of keys as on the Windows host OS (so at least something seems to work...).
I would appreciate any ideas you might have.
PS: In your latest reply, in step 2, I think you mean IdentityAgent
instead of IdentifyAgent
?