text: (window.webpackJsonp=window.webpackJsonp||[]).push([[47],{411:function(t,s,e){"use strict";e.r(s);var i=e(42),a=Object(i.a)({},(function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"github的host和key"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#github的host和key"}},[t._v("#")]),t._v(" GitHub的Host和Key")]),t._v(" "),e("h3",{attrs:{id:"解决github不能访问的问题"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#解决github不能访问的问题"}},[t._v("#")]),t._v(" 解决GitHub不能访问的问题")]),t._v(" "),e("ol",[e("li",[e("p",[t._v("修改Host")]),t._v(" "),e("div",{staticClass:"language- extra-class"},[e("pre",{pre:!0,attrs:{class:"language-text"}},[e("code",[t._v("  # github\n  204.232.175.78 https://documentcloud.github.com\n  207.97.227.239 https://github.com\n  204.232.175.94 https://gist.github.com\n  107.21.116.220 https://help.github.com\n  207.97.227.252 https://nodeload.github.com\n  199.27.76.130 https://raw.github.com\n  107.22.3.110 https://status.github.com\n  204.232.175.78 https://training.github.com\n  207.97.227.243 https://www.github.com\n")])])])]),t._v(" "),e("li",[e("p",[t._v("刷新DNS：控制台输入"),e("code",[t._v("ipconfig/flushdns")])])])]),t._v(" "),e("h3",{attrs:{id:"git-key获取"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#git-key获取"}},[t._v("#")]),t._v(" Git Key获取")]),t._v(" "),e("ol",[e("li",[t._v("在git bash中运行"),e("code",[t._v('ssh-keygen -t rsa -C "git user"')])]),t._v(" "),e("li",[t._v("此时会在"),e("code",[t._v("C:\\Users\\jack\\.ssh")]),t._v("文件夹内生成"),e("code",[t._v("id_rsa.pub")]),t._v("和"),e("code",[t._v("id_rsa")])]),t._v(" "),e("li",[t._v("复制"),e("code",[t._v("id_rsa.pub")]),t._v("的内容（就是key）")]),t._v(" "),e("li",[t._v("放置于github -> setting -> SSH keys中（title随意）")])])])}),[],!1,null,null,null);s.default=a.exports}}]);