github 无法通过 ssh 协议链接

2017-03-13 17:37:20 +08:00
 sfyumi

前几天还能直接 clone github ssh 协议的 git repo, 今天忽然不行了.

ssh -Tv git@github.com

一直无法认证

OpenSSH_7.2p2 Ubuntu-4ubuntu2.1, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /home/ychen/.ssh/config
debug1: /home/ychen/.ssh/config line 6: Applying options for github.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to github.com [1.111.11.111] port 22.
debug1: Connection established.
debug1: identity file /home/ychen/.ssh/id_rsa.github.pub type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/ychen/.ssh/id_rsa.github.pub-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.2p2 Ubuntu-4ubuntu2.1
ssh_exchange_identification: Connection closed by remote host

github 的 ssh 不会是跪了吧?

2590 次点击
所在节点    GitHub
9 条回复
winterbells
2017-03-13 17:49:12 +08:00
key_load_public: No such file or directory
这个问题?
sfyumi
2017-03-13 17:51:24 +08:00
@winterbells 不是的, 我测试公司内部的 git 服务器也显示 key_load_public: No such file or directory, 但是可以正常 clone
l1093178
2017-03-13 18:21:35 +08:00
ip 不对吧

~~~
; <<>> DiG 9.8.3-P1 <<>> github.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 65197
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;github.com. IN A

;; ANSWER SECTION:
github.com. 287 IN A 192.30.253.112
github.com. 287 IN A 192.30.253.113
~~~
Love4Taylor
2017-03-13 18:44:16 +08:00
1.111.11.111 这 IP 不对吧
wlsnx
2017-03-13 18:45:45 +08:00
1.111.11.111
这个是 IP 靓号?
sfyumi
2017-03-13 19:32:23 +08:00
@l1093178 没配过 host 什么的, 我再检查检查原因. 我 ping github.com 也返回 1.111.11.111 这个 ip
sfyumi
2017-03-13 19:40:54 +08:00
@Love4Taylor @l1093178 @winterbells @wlsnx ok 了. 是我的 github 解析的 ip 错了, 不知道为什么解成 1.111.11.111 了. 我直接把 github 的 ip 配成 192.30.253.112 就 ok 了. 等以后再看看为什么会解析成 1.111.11.111 这么靓的 ip 好了
winterbells
2017-03-13 21:49:31 +08:00
@sfyumi 我以为是你打的码(・□・、*)
以为是用你自己的反代...
think2011
2017-03-13 21:52:24 +08:00
IP 靓号 哈哈

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/347144

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX