DEV Community

Cover image for [solved] How to resolve this issue? "ssh: Could not resolve hostname github.com: nodename nor servname provided, or not known"?
Yashu Mittal
Yashu Mittal

Posted on

[solved] How to resolve this issue? "ssh: Could not resolve hostname github.com: nodename nor servname provided, or not known"?

If you are getting this in your terminal.

ssh: Could not resolve hostname github.com: nodename nor servname provided, or not known

and you are thinking that the problem is related to ssh or GitHub, then you are totally wrong.

Believe me, I made the same mistake 😅

The easiest way to resolve this issue to run this command in your terminal.

git config --global --unset http.proxy 
git config --global --unset https.proxy

Top comments (1)

Collapse
 
robrecord profile image
Record

Nope, didn't work for me.