1 |
On Thursday, July 7 at 17:43 (-0700), Grant said: |
2 |
|
3 |
|
4 |
> |
5 |
> Yeah I don't get it. Check this out: |
6 |
> |
7 |
> $ ping google.com |
8 |
> PING google.com (74.125.224.84) 56(84) bytes of data. |
9 |
> 64 bytes from 74.125.224.84: icmp_req=1 ttl=55 time=97.1 ms |
10 |
> 64 bytes from 74.125.224.84: icmp_req=2 ttl=55 time=97.1 ms |
11 |
> 64 bytes from 74.125.224.84: icmp_req=3 ttl=55 time=97.5 ms |
12 |
> ^C |
13 |
> --- google.com ping statistics --- |
14 |
> 3 packets transmitted, 3 received, 0% packet loss, time 5142ms |
15 |
> rtt min/avg/max/mdev = 97.105/97.268/97.539/0.319 ms |
16 |
> $ ssh google.com |
17 |
> ssh: Could not resolve hostname google.com: Name or service not known |
18 |
> |
19 |
> - Grant |
20 |
> |
21 |
|
22 |
Check your ~/.ssh/config. For example: |
23 |
|
24 |
$ ssh localhost # works fine, but |
25 |
|
26 |
$ mv ~/.ssh/config ~/.ssh/config.bak |
27 |
|
28 |
$ cat -v config.test |
29 |
Host * |
30 |
HostName "%h ^H" |
31 |
|
32 |
$ mv config.test ~/.ssh/config |
33 |
|
34 |
$ ssh localhost |
35 |
ssh: Could not resolve hostname localhost: Name or service not known |