Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GITHUB setup - no address associated with name

Tags:

git

I'm trying to setup GitHub on my system and I have done all the installation and key setup process:

But during test everything phase getting the following error by command:

$ ssh -T [email protected]
ssh:github.com:no address associated with name
like image 867
user958248 Avatar asked Sep 22 '11 04:09

user958248


4 Answers

I had the same error message. In my case my netbook's wifi switch got bumped and I didn't notice I had no internet connection. So make sure you have internet access if you're getting this error! (duh!)

like image 145
leoj Avatar answered Oct 18 '22 13:10

leoj


It means it doesn't found your HOME/.ssh/id_rsa and id_rsa.pub, and is looking for a HOME/.ssh/config file which could have defined the name 'github.com', as illustrated here.

That usually means you don't have defined what HOME is (which isn't defined by default on Windows, see this answer)

like image 23
VonC Avatar answered Oct 18 '22 14:10

VonC


I tried almost everything found on Google related to this question, and nothing seemed to work. I remembered that Windows has made some updates on 'Windows Defender'. I may seem irrelevant but it is not;

What worked for me was running Git as Administrator, which i never did before.

like image 5
musicvicious Avatar answered Oct 18 '22 12:10

musicvicious


I also faced the same problem and the error was that: I was using the wrong URI, it should be like:

ssh -T [email protected]

and not as what was copied for cloning

ssh -T [email protected]:username/repo.git

like image 2
Keshav Gupta Avatar answered Oct 18 '22 14:10

Keshav Gupta