-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for ssh agent that comes with git for windows (git-bash/ cygwin) #6
Comments
So this issue is way beyond me, as I have very little systems (and golang) programming experience. I tried this little program just to see what would happen:
I made sure to run Anyway, doubt this is really helpful, but i tried. |
Thanks for your input @kylepaulsen. As just mentioned in issue #5 I will try to make some time for both these issues in the next week or two. Thanks. |
I did some debugging and I think just including the linux part in the Windows build and differentiate between them on runtime will fix Git Bash |
Right, that didn't really work out I quess 🙈 But... Doesn't this PR solve this already? It's been a while, so no clue to be honest: #7 |
Unfortunately this doesn't work as git bash exposes the agent via the SSH_AUTH_SOCK and mimics Unix behavior. I don't know if there even is a way to make it work. |
I tried whats in PR #15, but it doesn't work. It'll build a string like this: |
If you have time; did you also check or test PR #16? |
As discussed on the rclone forum it would be great if this library could work with the ssh agent which comes with git-bash.
This is a packaged up version of cygwin and is very popular for running git on windows.
For example git-bash is installed on all Azure pipelines builders and GitHub actions builders by default.
I guess that in this case the library should just use the unix way of connecting to the ssh-agent. Perhaps detected by the presence of the correct environment variables?
The text was updated successfully, but these errors were encountered: