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
PurplProto
3 years agoOccasional Contributor
I can't get 1Pass ssh-agent working at all on Windows
I tried following the SSH doc linked on the blog post for this update, but I can't get it working at all 😣.
For the prerequisite requirements:
I was previously on the beta channel, before run...
PurplProto
3 years agoOccasional Contributor
I've tried this again since I got it working on my laptop right away after I did a much needed format on there. I have successfully been able to get this working on my desktop now as well where I was having the previous issues.
I believe what the issue seems to be was I'd been using ssh -Tv git@github.com
in GitBash which was always failing. It seems 1Password's agent doesn't work with GitBash's ssh binary directly, which now also seems obvious to me after remembering one of the install steps is to set the sshCommand in the Git config to that of the Windows binary, so running the SSH test for GitHub here will naturally fail. I've repeated this same test in CMD so it's using Windows OpenSSH instead and that works, I can even access my servers from there too, yay! 🎉
I would certainly like to get this working in GitBash though as I prefer to use bash-like tools over Windows' equivalents. I think for this, setting the Windows' OpenSSH in the path environment variable before GitBash's SSH binary should do the trick for now, but maybe finding a way to add the \\.\pipe\openssh-ssh-agent
to GitBash's environment would be nicer. I'm not well versed with pipes, but I've read someone had success using socat
, though it looked like a rather over-complicated solution to the issue, so I won't bother trying that.
TL;DR
I was testing if 1Password's agent was working using SSH inside GitBash, though 1Password's agent only works with Windows' OpenSSH. The only way this works for Git inside GitBash is because an install step added a config option to Git to instruct it to use Windows' OpenSSH instead.