GitHub宣布,到 2023 年底,所有用戶都必須要啟用雙因素身份驗證 (2FA),不能只用密碼.
GitHub開啟2FA后,除了輸入密碼外,還需要通過一次性密碼(OTP)等方式做第二級身份驗證,才能成功登錄賬號。
SMS authentication
or
using a TOTP app on mobile
SMS
在GitHub上綁定手機(jī)號碼時候,發(fā)現(xiàn)沒有中國手機(jī)號碼的選項.
原因是國內(nèi)手機(jī)號碼接收到短信的成功率低,所以官方就直接去掉了。
Get authentication codes by SMS on your mobile phone when signing into GitHub. Make sure that?your country or region is supported?for SMS delivery.
source:Countries where SMS authentication is supported - GitHub Docs
手動添加+86.我們可以修改網(wǎng)頁的元素,使用一些手段讓他顯示
way 1.
打開開發(fā)者工具,復(fù)制代碼到控制臺執(zhí)行
var option = new Option("China +86","+86");
option.selected = true;
document.getElementById('countrycode').options.add(option, 0);
way2 .修改網(wǎng)頁的元素
在驗證網(wǎng)頁按F12進(jìn)入開發(fā)者模式,選擇控制臺(Consol)選項,填入如下代碼,按回車
<option value="+1">United States +1</option>
<option value="+86">China +86</option>
Enable two-factor authentication (2FA)
Github短信驗證碼沒有中國區(qū)的解決辦法-CSDN博客
Github騷操作綁定中國+86手機(jī)號碼實現(xiàn)兩步驗證_gitpod手機(jī)號認(rèn)證-CSDN博客
TOTP app on mobile
github上面推薦的 app,1password 是收費(fèi)軟件, Authy 和 Microsoft Authenticator 都是主流的二次驗證工具軟件,但 Authy 的免費(fèi)版功能有限。本文推薦使用微軟的 Authenticator。
下載Microsoft Authenticator
https://www.microsoft.com/zh-cn/security/mobile-authenticator-app?rtc=1#overview
-
根據(jù)操作系統(tǒng)安裝最新版本的 Authenticator 應(yīng)用:
-
谷歌Android。?在Android設(shè)備上,轉(zhuǎn)到 Google Play?下載并安裝Authenticator應(yīng)用。
-
蘋果iOS。?在 Apple iOS 設(shè)備上,轉(zhuǎn)到App Store下載并安裝Authenticator應(yīng)用。文章來源:http://www.zghlxwxcb.cn/news/detail-713831.html
iPhone 內(nèi)置2FA 驗證碼功能,不用下載TOTP App
Thttps://zhuanlan.zhihu.com/p/664876565OTP App 了 - 知乎文章來源地址http://www.zghlxwxcb.cn/news/detail-713831.html
到了這里,關(guān)于Github 2FA綁定中國+86手機(jī)號碼實現(xiàn)兩步驗證的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!