Github SSH connection refused, try changing your DNS provider

Problem after exhausting every method to git pull from Github over SSH:

ssh: connect to host github.com port 22: Connection refused

Solution was to change DNS provider to Cloudflare. In my case TalkTalk KidSafe filter was the issue.

A useful command for debugging SSH connections is…

ssh -Tv [email protected]

 

Was this article helpful?
YesNo