ssh: Could not resolve hostname e.coding.net: Name or service not known

在向git上传代码,即git push
或从git上download代码 git pull 时,会有如下错误提示:

ssh: Could not resolve hostname **: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

当前环境:
(1)WMware 虚拟机
(2)ubuntu 14.04
(3)网络链接为 Ethernet connector1
连接方式为:Manual
IP:192.168.10.30

经过排查发现,出现上述报警的原因是,网络连接的问题,将网络调整为Ethernet connector1
连接方式为:Automatic(DHCP)

再进行git pull 和 git push 操作即可。

猜你喜欢

转载自blog.csdn.net/bbtang5568/article/details/83022751