更新于 2013-11-27 23:54:29 UEANER

今天发现 github 无法登录,赶紧登录一下,悲哀,真的无法登录。 重置一下密码,可以登录了。但是更改一些代码发现无法提交。

探索

$ git push
error: The requested URL returned error: 503 Service Unavailable while accessing https://github.com/ueaner/soap.git/info/refs

fatal: HTTP request failed

查看一下提交的地址:

$ git remote -v
origin    https://github.com/ueaner/soap.git (fetch)
origin    https://github.com/ueaner/soap.git (push)

原以为 https 的原因,更改一下提交方式:

$ git remote set-url origin git@github.com:ueaner/soap.git

$ git remote -v
origin    git@github.com:ueaner/soap.git (fetch)
origin    git@github.com:ueaner/soap.git (push)

再次提交:

$ git push
Warning: Permanently added the RSA host key for IP address '192.30.252.131' to the list of known hosts.
ERROR: Hi ueaner, it's GitHub. We're doing an SSH key audit.
Please visit https://github.com/settings/ssh/audit/6307847
to approve this key so we know it's safe.
Fingerprint: 13:a4:f2:5f:59:6f:fd:79:ea:9e:57:03:63:37:15:79
fatal: The remote end hung up unexpectedly

依然报错。

解决

根据上边的提示,访问地址:https://github.com/settings/ssh/audit/6307847,点击 approve 审核通过所有的的 ssh key.

再次提交:

$ git push
Warning: Permanently added the RSA host key for IP address '192.30.252.128' to the list of known hosts.
Counting objects: 13, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (12/12), 5.52 KiB, done.
Total 12 (delta 0), reused 0 (delta 0)
To git@github.com:ueaner/soap.git
   c92298e..5251418  master -> master

搞定。

转载请注明出处。
本文地址:http://blog.aboutc.net/linux/60/github-login-error

评论:0

关闭高亮高亮 分享到新浪微博分享到新浪微博