Skip to main content
October 16, 2023
Question

1Password SSH within local devcontainer in vscode

  • October 16, 2023
  • 3 replies
  • 4570 views

Hi there,

I've been using the SSH key management built into 1Password and really enjoy it. When using vscode it easily pulls through my ssh keys to sign commits and push to github repo.

However, I've noticed that when I try and run a local devcontainer and connect to it I can no longer commit messages. I get the following error when I try and commit.

fatal: cannot run /opt/1Password/op-ssh-sign: No such file or directory

I have to workaround by having two instances of vscode open. 1 to do the development within devcontainer and another outside of the devcontainer to simply sign and push commits.

Am I doing something simple wrong that means the configuration doesn't work?

Thanks in advance


1Password Version: 8.10.16
Extension Version: Not Provided
OS Version: Manjaro Linux
Browser: Chrome

3 replies

November 6, 2023

FWIW I get inconsistent results on local or remote devcontainers in vscode and so I set the SSH_AUTH_SOCK in my .zshrc and don't use the program

November 28, 2023

Thanks @EERattler. In the end https://1password.community/discussion/132867/visual-studio-code-remote-development-server-and-1password-ssh-config#latest resovled the issue.

bash
export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
code .

November 28, 2023

We can mark this as closed (not sure how to do that)