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:

http://www.howtogeek.com/geekers/up/sshot4d0b1298a026e.jpg


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -