FredrikNoren / ungit

The easiest way to use git. On any platform. Anywhere.
MIT License
10.44k stars 637 forks source link

Authenticity of host can't be established #388

Open argo49 opened 10 years ago

argo49 commented 10 years ago

Ungit is working perfectly in Linux and OSX for me but on Windows 7 I'm seeing the message

Authenticity of host xxxxxxx.com (xxx.xxx.xxx.xxx) can't be established

whenever ungit tries to communicate with the remote origin over SSH. I'm certain that I already have the RSA key in the known_hosts file at C:/Users/USERNAME/.ssh/known_hosts

When I try to enter yes into the command line to continue connecting and add the RSA key into the known_hosts file it continuously prompts me to "please enter 'yes' or 'no':" even if I enter exactly the word yes or no. I've even tried disabling the need for any host authentication in .ssh/config to try to get this to work.

I've tried doing this through Windows terminal, GitBash and a console emulator and nothing seems to work.

Node: v0.10.28 NPM: 1.4.9 Git: 1.9.2.msysgit.0

FredrikNoren commented 10 years ago

Hm can you try doing a git fetch and see if it prompts you so you can type in yes and then start ungit?

argo49 commented 10 years ago

Ungit tries to do a git fetch as soon as it launches which is what prompts the authenticity verification. Trying to do any command after launching Ungit results in the please type yes or no: message. A git fetch before launching Ungit works but the problem still happens after launch.

When im just in the command line git works and there's no check since it's already been added to my known_hosts file. I don't know why it's ignored when Ungit is running.

FredrikNoren commented 10 years ago

Hm is Ungit running as another user for some reason? (I know you can start an "administrator" console in Windows, maybe that makes Ungit run as admin which looks for known hosts somewhere else? Just a wild guess though)

argo49 commented 10 years ago

Nope, don't think so. I didn't have administrative privileges on that computer. We've since upgraded to Windows 8.1 and it seems to be working fine!