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
Niels3242
2 months agoNew Contributor
How to successfully pass 1Password stored SSH key to terminal in VSCode devcontainer?
I have a Rails 8 app which is using devcontainers. On my macOS I have 1Password setup to store my ssh private key and it works as it should from the terminal in the os. Using e.g. ssh commands invoke...
Michael_Mercuri
31 days agoContributor
I cannot answer from direct experience since I'm not using VSCode devcontainers, but it sounds like it's a communication issue with 1Password's SSH agent from inside the devcontainer.
Is the SSH_AUTH_SOCK
environment variable set (in your shell running in macOS terminal)?
Did you see this post which may provide some hints?
https://1password.community/discussion/146096/vscode-dev-container-and-ssh
If you've never configured SSH_AUTH_SOCK
or SSH Agent forwarding before, more info here:
https://developer.1password.com/docs/ssh/agent/forwarding