4

I have successfully installed git on a windows server 2008 machine and set up ssh.

I have successfully cloned a repository on my developer machine (windows 7), but when I tried to clone it on my laptop (windows 7), it is giving me the error:

unable to open connection. Host does not exist

I can connect to it with putty successfully, and also set the environment variable. I cannot identify what I am missing. Please help. Thanks in advance.

4

1 回答 1

10

实际上,当我尝试克隆时,它也在警告框中给出了错误

The server's host key is not cached in the registry

选择是或否然后我选择是然后它给了我错误

unable to open connection. Host does not exist  

所以解决方案是将主机密钥保存在注册表中

打开 cmd 并转到 plink 的路径(我的是 C:\Program Files (x86)\GitExtensions\PuTTY)并输入 plink user@whateveryourserver.com

这将提示您将主机密钥保存在注册表中,然后输入 yes,然后再次尝试您的 git 命令,它应该可以工作。

于 2013-10-30T10:35:49.013 回答