Issue
I am receiving:
ssh: Could not resolve hostname \342\200\223t: Name or service not known
for
ssh -T [email protected]
Keygen has been added to GitHub and they were tested to match using
ssh-add -l -E md5
They do match, but I am still receiving this error.
I also tried:
ping github.com
git config --global --unset http.proxy
git config --global --unset https.proxy
This was a suggested fix on another question that didn't work. The ping returns an IP address, so the connection seems to be working. Also Git pull works, but it requires a password each time. It’s a hostname error, so does it have to do with the DNS? Or maybe a port needs to be forwarded.
Solution
You are using the wrong hyphen character -
somewhere. \342\200\223
is UTF-8 for U+2013 EN DASH, which looks like –
. It is possible that this is due to autocorrect, a filter set up somewhere on a blog, or copying and pasting things. I know that when I type on my iPhone, if I type --
(two hyphens) it will get changed to –
(one en dash) by the phone automatically, which makes it deeply frustrating to answer Stack Overflow questions.
So, –
is incorrect, but -
is correct. Welcome to the world of Unicode. Notice that the en dash is slightly... but just slightly... longer.
Answered By - Dietrich Epp Answer Checked By - Pedro (WPSolving Volunteer)