1. 程式人生 > >ssh: Could not resolve hostname e.coding.net: Name or service not known

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 操作即可。