I have some git hosts defined in
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?
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.
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.
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?