unable to clone git repository on laptop, however, cloned successfully on dev machine

爷,独闯天下 提交于 2019-12-10 15:45:38

问题


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.


回答1:


Actually when I tried to clone it was also giving the error in alert box that

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

with option yes or no then I selected Yes then it gave me the error

unable to open connection. Host does not exist  

So the solution is saving the host key in registry

Open up cmd and go to path of plink (mine was C:\Program Files (x86)\GitExtensions\PuTTY) and type plink user@whateveryourserver.com

This will prompt you to save the host key in registry , and enter yes, then try your git command again, and it should be working.



来源:https://stackoverflow.com/questions/19542246/unable-to-clone-git-repository-on-laptop-however-cloned-successfully-on-dev-ma

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!