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 ...
smfelsher
9 months agoOccasional Contributor
So it appears that ssh
will use the IdentityAgent
property from the ~/.ssh/config
file before it uses the SSH_AUTH_SOCK
environment variable. Git started working in the dev container once I disabled the IdentityAgent in the config file.
Another solution is to bind ~/.1password/agent.sock
into the container. This will satisfy the IdentityAgent locally and in the container.