我已经安装RasPi Raspbian,现在我不能做ssh或git clone,只有本地主机名正在被解析。然而Ping原理:无法解析主机名,ping工程
pi ~ $ ssh test.com
ssh: Could not resolve hostname test.com: Name or service not known
pi ~ $ git clone [email protected]:test.git
Cloning into 'test'...
ssh: Could not resolve hostname test.com: Name or service not known
fatal: The remote end hung up unexpectedly
pi ~ $ ping test.com
PING test.com (174.36.85.72) 56(84) bytes of data.
我周围那种工作了github上使用http://github.com
代替git://github.com
,但是这是不正常的,我想查明问题。
谷歌搜索类似的问题,但提供的解决方案是打字错误更正或添加域到主机文件。
如果您可以ping通,请尝试使用IP地址。 'git clone [email protected]:test.git'。我还会看看'nslookup test.com'以确保它正确解析。 – 2013-02-25 01:07:01
当然,我可以使用IP地址,但我想彻底解决它。最重要的是 - 了解是什么造成的。 – firedev 2013-02-25 03:30:21