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

Git hosts defined in .ssh/config not working in cmder #58

Closed
JPNaude opened this issue Nov 29, 2013 · 13 comments
Closed

Git hosts defined in .ssh/config not working in cmder #58

JPNaude opened this issue Nov 29, 2013 · 13 comments

Comments

@JPNaude
Copy link

JPNaude commented Nov 29, 2013

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?

@hugomrdias
Copy link

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

@hugomrdias
Copy link

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

@samvasko
Copy link
Contributor

Should be fixed in latest release

@kernelp4nic
Copy link

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! ^_^

@Graham42
Copy link

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

@dan2k3k4
Copy link

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...

@NobleWP
Copy link

NobleWP commented Mar 27, 2014

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.

@zbrook
Copy link

zbrook commented Oct 15, 2014

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.

@NekR
Copy link

NekR commented Jan 15, 2015

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.

@celorodovalho
Copy link

The same problem to me.

@ndoulgeridis
Copy link

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?

@klvbdmh
Copy link

klvbdmh commented Aug 8, 2016

The issue is still present in the latest cmder version.

@cmeza
Copy link

cmeza commented Sep 26, 2017

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:

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.

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