Interview Prep/Git & GitHub/Authentication and Remote Access

`fatal: unable to access '...': Could not resolve host: github.com`

BeginnerTroubleshootingAuthentication and Remote Access
Answer

Likely causes → No network, DNS failure, VPN changing DNS, or a proxy that is required but not set.

Diagnose →

ping -c1 8.8.8.8
nslookup github.com
curl -sI https://github.com | head -1

Fix → Fix connectivity or DNS (reconnect VPN, change resolver). If a proxy is mandatory, set git config --global http.proxy http://proxy.corp:8080.

Prevent → In CI, use a runner image with correct DNS and proxy variables.

All Git & GitHub questions Roadmap: Git & GitHub

More on Authentication and Remote Access