Windows – ssh:无法解析主机名github.com STATUS_ACCESS_VIOLA
原来的问题
从Windows 7上安装git几个小时,首先我在Windows上安装了GitHub,但是并没有向我提出上诉.然后我安装了Git-1.9.2-preview20140411并开始出现问题. 我认为多个安装有冲突.所以我卸载了一切.我决定尝试Cygwin. 我根据这个教程:How To install Git client on Windows using Cygwin By Johnathan Mark Smith 我通过Web浏览器将生成的公钥SSH添加到GittHub上的我的帐户.我创建了第一个repository (通过浏览器). 回到cygwin终端后,我输入: git clone git@github.com:akawalko/ZFExt.git 我收到了这样的结果 Cloning into 'ZFExt'... ssh: Could not resolve hostname github.com: Non-recoverable failure in name resolution fatal: The remote end hung up unexpectedly 我不明白这个消息.我做错了? 编辑1: 更新问题 我开始问google不详细的问题,我发现:git and ssh: Could not resolve hostname,ping works.我更改了我的DNS地址打开DNS,并能够克隆我的repo使用ip adres而不是域: git clone git@192.30.252.128:akawalko/ZFExt.git some_git_repo/ 使用域名仍然无效: git clone git@github.com:akawalko/ZFExt.git some_git_repo/ Cloning into 'some_git_repo'... ssh: Could not resolve hostname github.com: Non-recoverable failure in name resolution fatal: The remote end hung up unexpectedly 任何想法(其他改变DNS)?
我在VMware Fusion VM中有这个问题.我不得不将我的网络从NAT改为Bridged,并开始工作.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |