Skip to main content
Mar 31, 2022 9:09 PM UTC
Question

Visual Studio remote development server and 1password ssh keys

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

3 replies

Apr 7, 2022 4:59 PM UTC

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."

Jun 7, 2022 11:30 PM UTC

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
mailto: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
Jun 9, 2022 5:05 PM UTC

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