ssh: Could not resolve hostname github.com: Name or service not known; fatal: The remote end hung up

xiaoxiao2021-02-28  49

刚才想向github远程仓库push我的代码,结果报错:

【ssh: Could not resolve hostname github.com】

在stackoverflow上面找到解决方案:

ping github.com, if ping failed. it is DNS error.sudo vim /etc/resolv.conf, the add: nameserver 8.8.8.8 nameserver 8.8.4.4

好,我ping了github.com,再次报错:

ping github.com ping: unknown host github.com 】

继续搜,【

Linux不能上网ping:unknown host问题怎么解决?

解决方案:

http://jingyan.baidu.com/article/4d58d54137d2a19dd5e9c050.html

可以上网了。

转载请注明原文地址: https://www.6miu.com/read-77441.html

最新回复(0)