刚刚想往 github 上传点修改,发现提示ssh_exchange_identification: Connection closed by remote host
错误
又试了试 git remote show origin
命令和ssh -T [email protected]
发现还是一样的错误。
于是 dig 了一下 github.com , 结果神奇的发现了下面的信息, github 这个域名竟然被解析成了 1.1.1.1 , 我了个擦擦啊。。还让不让人活了。
; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> github.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 3569
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUESTION SECTION:
;github.com. IN A
;; ANSWER SECTION:
github.com. 0 IN A 1.1.1.1
;; Query time: 8 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon May 02 12:49:41 CST 2016
;; MSG SIZE rcvd: 44
然后用 114 测试了一下, 发现直接查不到。。
→ dig github.com @114.114.114.114
; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> github.com @114.114.114.114
;; global options: +cmd
;; connection timed out; no servers could be reached