Visual Studio remote development server and 1password ssh keys

Options
rodneyt
rodneyt
Community Member
edited May 2022 in SSH

I use Visual Studio Remote Development (https://code.visualstudio.com/docs/remote/remote-overview)

Any suggestions for using 1password ssh with Visual Studio.

For example, development windows will prompt for SSH key when connecting (or periodically during operations when idle)


1Password Version: 8
Extension Version: Not Provided
OS Version: Not Provided

Comments

  • Aktariel
    Aktariel
    Community Member
    Options

    I don't quite think I follow. VS Code should use the SSH agent on your system; as long as you've set up the 1password SSH agent to be your systemwide SSH agent, it should "just work."

  • adilson
    adilson
    Community Member
    edited June 2022
    Options

    I am facing the same problem. When I try to access GitHub from the VSCode terminal, on my remote development server, it seems the ssh key is not getting forwarded to the dev server.

    $ git pull --tags origin master
    git@github.com: Permission denied (publickey).
    fatal: Could not read from remote repository.
    
    Please make sure you have the correct access rights
    and the repository exists.
    
  • Fooligan
    Fooligan
    Community Member
    Options

    Have you tried adding ForwardAgent yes in the 1Password agent block?

This discussion has been closed.