ssh:无法在eip = 68086014解析主机名github.com + STATUS_ACCESS_VIOLATION

don*_*key 9 windows git cygwin

原始问题

从几个小时的努力在Windows 7上安装git开始.首先我在Windows上安装了GitHub,但没有吸引我.然后我安装了Git-1.9.2-preview20140411并开始遇到问题.

我想多次安装存在冲突.所以我卸载了所有东西.我决定尝试Cygwin.

我根据本教程采取了行动:如何使用Cygwin在Windows上安装Git客户端作者:Johnathan Mark Smith

我通过Web浏览器将生成的公钥SSH添加到我在GittHub上的帐户.我创建了第一个存储库 (通过浏览器).

回到cygwin终端后我键入:

git clone git@github.com:akawalko/ZFExt.git
Run Code Online (Sandbox Code Playgroud)

我收到了这样的结果

Cloning into 'ZFExt'...
ssh: Could not resolve hostname github.com: Non-recoverable failure in name resolution
fatal: The remote end hung up unexpectedly
Run Code Online (Sandbox Code Playgroud)

我不明白这个消息.我做错事情了?

编辑1: 给给我一个减号的人.在你看来我不应该问.而是格式化硬盘驱动器.这样可以吗?

更新的问题

我开始向谷歌询问不太详细的问题,我发现它:git和ssh:无法解析主机名,ping工作.我更改了我的DNS地址以打开DNS,并能够通过使用ip adres而不是域来克隆我的repo:

git clone git@192.30.252.128:akawalko/ZFExt.git some_git_repo/
Run Code Online (Sandbox Code Playgroud)

使用域名仍然无效:

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
Run Code Online (Sandbox Code Playgroud)

任何想法(其他然后更改DNS)?

Ada*_*dam 20

我在VMware Fusion VM中遇到过这个问题.我不得不将我的网络从NAT更改为Bridged,它开始工作了.


Mit*_*hVz 9

对于在VMWare Fusion和Windows 10上遇到此问题的其他人,请参阅以下主题:https://communities.vmware.com/thread/518949?start = 0&tstart = 0

总之,ssh不会在使用Windows 10的Fusion上通过NAT进行DNS解析.这是一个已知的错误,但在此期间,请在主机文件中添加一个条目以访问bitbucket

131.103.20.167 bitbucket.org

另外,正如@Jim Redmond指出的那样,bitbucket很快就会改变他们的IP地址(2016年12月15日).

另一个更长久的选择是将Google设置为您的DNS提供商.使用8.8.8.8或8.8.4.4.或者对于ipv6:2001:4860:4860 :: 8888或2001:4860:4860 :: 8844.https://developers.google.com/speed/public-dns/docs/using


Ser*_*gey 5

对我来说,它是在我升级到Git 2.7.4时开始发生的。以下链接中的修复程序对我有用,您需要在\ etc \ ssh \ ssh_config中更改SSH配置。

AddressFamily inet
Run Code Online (Sandbox Code Playgroud)

请参阅下面链接的线程中的最后一条注释:

无法使用SSH解析主机名


don*_*key 2

概括

已经好几天了,我还没有找到任何解决方案。总之,这更多是操作系统的问题,而不是工具(Cygwin、Git)的问题。

我安装了两个竞争的 Git 客户端(Windows 上的 Git-1.9.2-preview20140411 和 GitHub),导致 Windows 注册表混乱。这会产生错误:STATUS_ACCESS_VIOLATION at eip=68086014。我返回到应用程序 GitHub For Windows 并将使用 Windows Power Shell。它远非完美,但它确实有效。

我太专注于上面提到的问题,以至于没有发现 DNS 的问题。因为我不知道如何解决这个问题(stackoverflow 上的答案对我不起作用),我将在 git clone 等命令中使用 IP 地址而不是 github 域,直到我重新安装 Windows。:-(

我已将标题修改为更准确。

非常感谢@Chris 的贡献。