ssh:无法解析主机名github.com错误

时间:2020-03-02 13:46:01

标签: repository hostname git-remote resolve

我正在窗口中使用vnc查看器使用raspberrypi终端,并且正在尝试克隆Git存储库。但是我一直在收到此错误消息。

ssh: Could not resolve hostname github.com: Temporary failure in name resolution fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.

我整天都在尝试解决此错误,但我仍然无法解决此错误。.知道解决方法将非常高兴。谢谢

1 个答案:

答案 0 :(得分:2)

也许是因为您的互联网访问,您可以尝试:

ping google.com

如果再次出现此错误,则说明您的网络配置或 Internet 访问存在问题。

我在ubuntu虚拟机上遇到过这个问题,由于路由器设置改变internet网络解决了。