Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
3 years agoVSC Remote SSH Host With Terminal
Using Visual Studio Code with the Remote SSH extension initially works with 1Password and I get the auth prompt to open the workspace. When opening a terminal inside VSC and attempting to use git on ...
friendly
3 years agoNew Contributor
I can't seem to make remote VS Code shell ask for local 1Password key. I connect from my Mac to a Windows 10 Pro GitBash shell.
Here's my ~/.ssh/config
:
Host *
IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock"
ForwardAgent yes
Here's my ~/.zprofile
:
export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock
1Password asks for my fingerprint when I open my remote workspace and connects fine. But then any ssh connections from within the remote shell don't work as if there was no special setup involved. I am not sure how ForwardAgent should work but I don't see any new environment variables inside the remote shell.
I tried to connect to PowerShell (default shell) manually from iTerm and also get no working IdentityAgent inside the remote.
What can be wrong? Is it a supported setup?
P.S. When I try the command on my local machine I get:
command-line line 0: garbage at end of line; "Containers/2BUA8C4S2C.com.1password/t/agent.sock".
When I try it on a remote machine, it fails as the $SSH_AUTH_SOCK
is not set