Cmder: Connection to SSH agent refused

Created on 10 Oct 2016  路  6Comments  路  Source: cmderdev/cmder

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.

Most helpful comment

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

All 6 comments

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

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

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zsedcbm picture zsedcbm  路  3Comments

isnullxbh picture isnullxbh  路  3Comments

luisrudge picture luisrudge  路  3Comments

hyrious picture hyrious  路  3Comments

brunowego picture brunowego  路  3Comments