I have an ssh configuration file as follows:
Host github
   User git
   Hostname github.com
   IdentityFile ~/.ssh/id_rsa
Host github.com-work
   User git
   Hostname github.com
   IdentityFile ~/.ssh/work
I have access to all the (private) github repos and have added public keys already. But when I tried
ssh -T git@github.com-work
It throws this error:
ssh: Could not resolve hostname github.com-work: nodename nor servname provided, or not known
What could be the reason for this error?
 
    