1Password SSH within local devcontainer in vscode

Options
johnnyfleet
johnnyfleet
Community Member

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

Comments

  • EERattler
    EERattler
    Community Member
    Options

    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

  • johnnyfleet
    johnnyfleet
    Community Member
    Options

    Thanks @EERattler. In the end this post resovled the issue.

    export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
    code .
    
  • johnnyfleet
    johnnyfleet
    Community Member
    Options

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