Cmder: Git hosts defined in .ssh/config not working in cmder

Created on 29 Nov 2013  路  13Comments  路  Source: cmderdev/cmder

I have some git hosts defined in /.ssh/config

Git operations in cmder does not seem to recognize these. For example, a push on a repository for which the host is defined in this config file is not working:

ssh: gitoffice: no address associated with name          
fatal: Could not read from remote repository.            

Please make sure you have the correct access rights      
and the repository exists.                               

Is there any way to get around this?

Most helpful comment

I have this as well

ssh my-server

gives error: ssh: Could not resolve hostname my-server: no address associated with name

But if i do:

ssh -F C:/Users/FooUser/.ssh/.config my-server

It works fine... So it takes wrong config file or what?

All 13 comments

You need to copy that to the cmder config folder.
Every config file that you have in your $HOME needs to be copied or symlinked to the config folder, ex ssh keys, virtualbox files etc etc

Sorry my previous reply should work for you if you use the packaged version but @bliker already fixed this problem few commits back.

Should be fixed in latest release

Hi @bliker!, I can't make this work even with the newest version of cmder. I just tried with v1.1.3 and doesn't work for me.

Maybe I just don't know where cmder will make a lookup for this file.

I just tried:

config/.ssh/config
config/ssh/config
config/config
config/etc/ssh/config (This actually works for Git Bash)

Any hints? Thanks! ^_^

I am having the same issue as @JPNaude I have hosts defined in ~/.ssh/config but it's not being used

For me, it seems the ssh-agent isn't running, is this related to this issue or seperate?
I can do: ssh myHost -> and it'll always ask for the passphrase for myHost, except I didn't define a passphrase, so I can't login with my ssh keys and have to revert to typing the actual password to login...

I can confirm the same issue here.. any update on this?
Everything is so perfect up until now with Cmder.

Looking forward for a fix.

I had this problem, and then it went away. I've done this a million times on Linux and OSX without fuss.

  • Downloaded & installed cmder a couple days ago.
  • Created %HOME% environment variable to c:\users
  • ssh-keygen; %HOME%.ssh directory was created. Copied public key to remote host.
  • ssh to remote host; prompts to add to known-hosts, which is created. Still asks for user's password.
  • ssh again, known-hosts was read but still prompts for user's password.
  • Tried removing known-hosts to ensure it's reading it, and sure enough, it asked me whether I should accept the RSA key fingerprint, then created known-hosts for me.
  • removed key pair, tried again. This time ssh prompted me for public key's passphrase, even though I didn't assign one.
  • Removed entire %HOME%.ssh directory and generated key pair again. Now it works.

Why this issue is still closed? This problem persist even in new versions of cmder. cmder does not recognize already saved passwords/logins for git, and even if I re-type them again in cmder, it still did not saved credentionals.

The same problem to me.

I have this as well

ssh my-server

gives error: ssh: Could not resolve hostname my-server: no address associated with name

But if i do:

ssh -F C:/Users/FooUser/.ssh/.config my-server

It works fine... So it takes wrong config file or what?

The issue is still present in the latest cmder version.

It seems ssh lost reference to my /Users/MyUser/.ssh/config (I never used /c/Users/MyUser path) as well, but when starting cmder after a reboot, ssh-agent knows where my files are:

Removing old ssh-agent sockets Starting ssh-agent: done Enter passphrase for /c/Users/MyUser/.ssh/id_rsa: Identity added: /c/Users/MyUser/.ssh/id_rsa (/c/Users/MyUser/.ssh/id_rsa)

This just started recently. I never had problems with cmder for a long time using this setup.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jenisys picture jenisys  路  3Comments

luisrudge picture luisrudge  路  3Comments

justinmchase picture justinmchase  路  3Comments

jordanrobinson picture jordanrobinson  路  3Comments

bmeverett picture bmeverett  路  3Comments