Forum Discussion
devbob
12 months agoNew Contributor
VSC Remote SSH ForwardAgent only works first time
I use 1Password to manage SSH-Keys and it works well.
Today i noticed a strange behavior when i use VSC Remote SSH and open another SSH connection in VSC terminal (with ForwardAgent yes). When i t...
devbob
12 months agoNew Contributor
I figured out how to fix this issue. It was not a problem with 1Password, but with VS Code. The variable $SSH_AUTH_SOCK wasn't updated after reconnecting to the host and pointed to the old path.
To fix this, change the setting Remote.SSH: Use Exec Server to false in VSC.
Original post that helped me: https://github.com/microsoft/vscode-remote-release/issues/9819