',subtitle:{text:["Loading..."],hitokoto:{enable:!0,show_author:!0,api:"https://v1.hitokoto.cn"},typing_speed:100,backing_speed:80,starting_delay:500,backing_delay:1500,loop:!1,smart_backspace:!0},text_color:{light:"#434343",dark:"#d1d1b6"},text_style:{title_size:"2.8rem",subtitle_size:"1.5rem",line_height:1.2},custom_font:{enable:!1,family:null,url:null},social_links:{enable:!0,style:"default",links:{github:"https://github.com/FrederickBun",instagram:null,zhihu:"https://www.zhihu.com/people/frederick-asyou",twitter:"https://twitter.com/FrederickAsYou",email:"i@setbun.com",bilibili:"https://space.bilibili.com/689929775?from=buntalk",facebook:"https://www.facebook.com/FrederickAsYou",youtube:"https://www.youtube.com/@Fredgg0017","fa-solid fa-train-subway":"https://www.travellings.cn/go.html","fa-solid fa-bell":"https://follow.it/buntalk?leanpub"},qrs:{weixin:null,"fa-solid fa-circle-dollar-to-slot":"https://cdn.jsdelivr.net/gh/FrederickBun/upyun-rhimgcdn@img/upload/202408110944048.png"}}},plugins:{feed:{enable:!0},aplayer:{enable:!1,type:"fixed",audios:[{name:null,artist:null,url:null,cover:null,lrc:null}]},mermaid:{enable:!0,version:"9.3.0"}},version:"2.7.2",navbar:{auto_hide:!1,color:{left:"#DCE2F1",right:"#FAF9DE",transparency:35},width:{home:"1200px",pages:"1000px"},links:{Home:{path:"/",icon:"fa-solid fa-planet-ringed"},Library:{icon:"fa-solid fa-book-sparkles",submenus:{Timeline:"/archives",Categories:"/categories",Tags:"/tags"}},Services:{icon:"fa-solid fa-server",submenus:{"Uptime status":"https://status.setbun.com/","Count Service":"https://vercount.one/","Whois Search":"https://whois.api.setbun.com/"}},About:{icon:"fa-solid fa-mug-hot",submenus:{Me:"/about",Links:"/links",Essays:"/essays",Photos:"/masonry",Subscribe:"/subscribe",Porfolio:"https://frederication.work"}}},search:{enable:!0,preload:!1}},page_templates:{friends_column:2,tags_style:"blur"},home:{sidebar:{enable:!0,position:"left",first_item:"menu",announcement:'营火,噼啪作响……
',show_on_mobile:!0,links:{Timeline:{path:"/archives",icon:"fa-regular fa-timeline"},Tags:{path:"/tags",icon:"fa-regular fa-tags"},Categories:{path:"/categories",icon:"fa-regular fa-folder-closed"},Essays:{path:"/essays",icon:"fa-regular fa-comment"},Photos:{path:"/masonry",icon:"fa-regular fa-images"},Travelling:{icon:"fa-solid fa-train-subway",path:"https://www.travellings.cn/go.html"},Subscibe:{icon:"fa-solid fa-bell",path:"/subscribe"}}},article_date_format:"auto",excerpt_length:300,categories:{enable:!0,limit:10},tags:{enable:!0,limit:10}},footerStart:"2023/2/6 03:09:13"},window.lang_ago={second:"%s seconds ago",minute:"%s minutes ago",hour:"%s hours ago",day:"%s days ago",week:"%s weeks ago",month:"%s months ago",year:"%s years ago"},window.data={masonry:!0}
Github:设置两步验证(2FA)
前言
今天准备上Github传项目,结果收到要求两步验证的提示。于是我翻了一下Github博客
博客链接
这篇新闻总的意思来说就是要求用户必须添加“两步验证”方式,否则无法访问某些功能
这里给大家出了一个设置Github两步验证的教程,希望大家喜欢!
1. 找到Github设置“两步验证”的地方
在Github设置可以找到,不过你可以通过下面的链接👇快速进入
https://github.com/settings/two_factor_authentication/setup/intro
进入后应该会看到这样的界面
2. 使用“两步验证”App进行验证
这里先把电脑放一边,拿出移动设备(手机或平板,为了排版好看我使用的是iPad),下载一个两步验证App(推荐1Password和Microsoft Authenticator,我比较喜欢用Microsoft Authenticator)。下载完成后,打开你的两步验证App:
这里以Microsoft Authenticator为例,进入后点击右上角加号会看到如下界面
点击“其他”(另外的是Microsoft帐户,如果使用了Microsoft365订阅,应该用过这个),会出现一个扫码界面,只需扫描刚刚Github出现的二维码就可以了!
扫描之后你的两步验证App应该会出现以下界面
可以看到两步验证App中已经添加了Github了
这时候你会得到一串数字,将其填入刚刚Github页面的输入框中(在30秒内,否则数字会更换,这时候如果没有及时填入就只能填新的了)
备份“两步验证数据”
这里我操作的时候忘截图了,遇到问题的可以问题评论一下
首先点击Download按钮,下载一个txt文件,请将此文件妥善保管,这是很重要的备份信息!!
然后会发现下面激活“下一步”按钮,点击它进行下一步
3. VOILA!
看到这个界面,就说明成功啦!!那么本次教程也就进入尾声啦~
总结
本次教程主要是说明了在Github上设置“两步验证”的方法~新人作者,烦请各位大佬指点!有任何问题欢迎评论,虽然很忙,但一定会看的!
- Title: Github:设置两步验证(2FA)
- Author: 磅豆龙
- Created at : 2024-04-26 00:00:00
- Updated at : 2024-07-13 03:34:18
- Link: https://blog.setbun.com/p/20240426.html
- License: This work is licensed under CC BY-NC-SA 4.0.