SSH connect to github fail -
i typed command have connection test github
:
ssh -t git@github.com
but outputs:
ssh: not resolve hostname github.com: nodename nor servname provided, or not known
why ssh not resolve github.com? want know , how solve it?
check network or dns config (as in this question).
"git , ssh: not resolve hostname, ping works" mentions:
this sounds dns issue. try switching dns server , see if works.
opendns 208.67.222.222 208.67.220.220 googledns 8.8.8.8 8.8.4.4
if ssh still gives hard time, try switching https.
the op edlin confirms in comments switching dns works, , recommend mac os x users how-to geek article "how switch mac os x use opendns or google dns":
- system preferences…
- click on network icon…
- select network card on left , select advanced button near bottom right corner.
- switch on dns tab, , can start adding in dns entries list.
click+
symbol @ bottom add new ones:
Comments
Post a Comment