CentOS - No route to host when trying git clone

1.2k Views Asked by At

I'm trying to clone a repo from github by using the command: git clone https://github.com/

However, I'm getting the below error:

fatal: unable to access "https://github.com/...." : Failed connect to ip addr : port; No route to host

I have tried several things including turning the firewall off. systemctl status firewalld shows inactive status.

Does anyone have an idea what I might be missing here?

1

There are 1 best solutions below

2
On

Check if the system has access to internet. It can be a problem with the nameserver. It should be defined here: /etc/resolv.conf