-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Can no longer use ssh-add: Error connecting to agent #1781
Comments
Same issue here after the latest Windows update :/ |
Same issue, with latest version (180506) |
try |
Thanks @Stanzilla! I removed |
Thanks @Stanzilla ! Works for me. |
Yep that's worked for me as well. Cheers @Stanzilla! |
@Stanzilla Thanks, that's worked for me. |
Another option (possibly better than using another copy of openssh) is to use the Windows ssh agent. Check status in powershell:
If the service is disabled, start it and set to manual:
If there's a reason to use a git version of openssh instead of the windows-installed version, that would be good to know. |
We need to support older versions of Windows as well |
Instead of removing
It will add |
If you are using default ssh client, you can switch git to use it too (answer was found here): |
@Stanzilla maybe you could use feature detection to set up default ssh for Windows version that support it or let that be the default and downgrade for non-native ssh? |
This seems like a much better solution than removing native OpenSSH from Windows path, which could have lots of consequences |
where did you remove it??? how did it got added in the first place?? by cmder?? why do that if it's wrong?? why do i need to spend 3 hours to get ssh-agent working with this software?? why do i need to google to many different github issues or PR or whatever to get any insight to enable this. as you might notice i'm going quite mental on this, at least it's a terrible and experience full of anger |
Windows does that. |
Purpose of the issue
Description of the issue
Can no longer add ssh keys using ssh-add. Instead I'm thrown the following error:
Error connecting to agent: No such file or directory
I believe this has started happening since the latest Windows update.
My set-up
I'm currently booting an ssh-agent at startup, having un-commented before:
call "%GIT_INSTALL_ROOT%/cmd/start-ssh-agent.cmd"
I'm running:
Further debugging
I took a look at the environment variables set:
SSH_AUTH_SOCK
&SSH_AGENT_PID
Both are set:
Which correctly creates into:
C:\Users\Dominic\AppData\Local\Temp\ssh-yzpgZ44bVaMU\agent.17940
I tried setting,
SSH_AUTH_SOCK
to the full windows path above, however at this point I then get:Could not add identity ".ssh\id_rsa": invalid format
Apologies if this is an issue with ConEmu, I'm not knowledgeable enough to be able to separate the two cleanly.
The text was updated successfully, but these errors were encountered: