github 2fa中国认证及TOTP App

Because of your contributions on GitHub, two-factor authentication will be required for your account starting Sep 28, 2023. Thank you for helping keep the ecosystem safe! Learn more about our two-factor authentication initiative.

2FA

对github有代码贡献的帐号要求进行2FA验证, 否则过期不能提交代码。

但是github手机短信验证不支持中国号码,这里介绍2种我正在使用的方式:

  1. totp应用
  2. 浏览器扩展

启用2FA之后,每次在不同设备上登录github都要输入验证码,浏览器插件可以生成验证码,但前提是需要先把帐号添加扩展中,换设备登录建议在手机上安装totp应用

TOTP应用

推荐微软的authenticator,类似网易大神APP,每次打开都会生成一个动态验证码,用此验证码进行登录,在国内的应用商店中可以下载到或者从google play中下载。

  1. 打开GitHub,从右上角选择【设置】,或者点击https://github.com/settings/security
  2. 从“个人设置”中选择【password and authentication】,然后从【Two-factor authentication】区域中选择 “Authenticator app”。
  3. 选择Edit,就会打开一个 页面显示 QR 代码, 请勿关闭此页面。
  4. 打开Authenticator应用,从右上角的【+】号添加帐户, (Google、Facebook 等) 选择其他帐户,然后扫一扫github页面上的这个QR码
  5. 扫描完成之后帐号就添加到Authenticator中了,下次打开切到github即可展示动态验证码。

image-20230916145641319

如果是第一次启用2FA,可以查看微软的文档:Add non-Microsoft accounts to the Microsoft Authenticator app - Microsoft Support

在第一次启用2FA后会给你一串码,下载下来保存这串码,关于这种恢复码的解释如下:

Recovery codes can be used to access your account in the event you lose access to your device and cannot receive two-factor authentication codes.

浏览器扩展

开源免费的Authenticator: 2FA Client,支持多种浏览器。

切到github的设置- 安全页面,展示一个二维码,然后点击扩展上的扫描按钮,用鼠标选中github的二维码,即可添加github帐号。

开源地址:Authenticator-Extension/Authenticator: Authenticator generates 2-Step Verification codes in your browser. (github.com)

Edge扩展:Authenticator: 2FA Client - Microsoft Edge Addons

Chrome扩展:身份验证器 - Chrome 应用商店 (google.com)

  • 4
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
GitHub 2FA是指GitHub引入的两步验证(Two-Factor Authentication)功能。该功能首先从开发人员和管理员开始推进,他们会收到电子邮件提醒并在GitHub网页版上看到横幅提示。开发人员有45天的时间来设置2FA,之后会有一周的缓冲期。如果开发人员在缓冲期结束后仍未设置2FA,将会限制其账户的访问。当用户成功配置了2FA后,下次登录GitHub时将被要求进行2FA验证才能成功登录。用户可以保存恢复码以备将来需要。GitHub采取这个措施的原因是因为整个软件生态系统的2FA采用率仍然很低,目前只有16.5%的GitHub活跃用户和6.44%的npm用户使用一种或多种形式的2FA。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* [GitHub 开启 2FA 双重身份验证的方法](https://blog.csdn.net/luckydarcy/article/details/130382055)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] - *3* [[Github实战]双重认证2FA 如何 设置/更改[手把手][2022]](https://blog.csdn.net/aaaadong/article/details/124595036)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值