Skip to content
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

Connection to SSH agent refused #1123

Closed
amirmohsen opened this issue Oct 10, 2016 · 6 comments
Closed

Connection to SSH agent refused #1123

amirmohsen opened this issue Oct 10, 2016 · 6 comments

Comments

@amirmohsen
Copy link

I started cmder this morning and got a notification to update. So I did and now I can't seem to use ssh anymore. Here's what happens:

$  eval `ssh-agent`
Agent pid [NUMBER]

$ ssh-add
Error connecting to agent: Connection refused

I use Git bash (Mingw64) with cmder. I tried Git bash directly and SSH works fine over there so it's probably not a problem with that.

I am on Windows 10 64bit and running ConEmu version 161009 stable. My git bash is mintty 2.5.0 (x86_pc-msys).

This was working perfectly fine before this morning's update.

@amirmohsen
Copy link
Author

I've downgraded to 160710 now and the ssh agent works again.

@PieterScheffers
Copy link

PieterScheffers commented Oct 10, 2016

I have the same issue.

If I execute "C:\Program Files\Git\cmd\start-ssh-agent.cmd". I get the 'connection refused' message.

If I first start the ssh-agent with ssh-agent -s in a Git Bash console, and then run "C:\Program Files\Git\cmd\start-ssh-agent.cmd", it works.

OS: Windows 10 64bit (build: 10586.589)
Conemu: 161009

@PieterScheffers
Copy link

I also downgraded, but to the 161002 version. Now it works again.

@MartiUK
Copy link
Member

MartiUK commented Oct 10, 2016

Looks like there's a problem with 161009 and git, stay on 161002 for the time being.

@ghost
Copy link

ghost commented Oct 10, 2016

I'm on 161009 x64 stable, running Cmder with no emulators on top.

Disable your environment variables (Startup > Environment), and try start-ssh-agent. Specifically disabling %ConEnuBaseDir% worked for me.

ssh

This breaks if I add the environment path; I get this error:

with env

@Stanzilla
Copy link
Member

Stanzilla commented Oct 10, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants