站長留言

  • ✅ 本站維護及更新歷史紀錄,詳情請參考公告
  • ✅ 有任何意見、想法,歡迎留言給Spicy知道喔
  • ✅ 固定於每周一至周五更新Blogger文章,周末不定期
GitGithubSourcetree

【Git】EP1:設定Two-Factor Authentication (2FA)後,Sourcetree如何驗證Github帳戶?

  1. 2FA
    • 為了帳戶的安全,許多網站都有提供Two-Factor Authentication (2FA) 2階段驗證的方式,讓使用者可以保護自己的帳戶,避免被盜用
    • 當然Github也提供了此功能,但後續的設定也是個問題

      1579054701609
  2. Github 如何設定2FA?
    • User → Setting → Security

      1579055373815
    • Enable 2FA

      1579055525691
    • Set up using an app

      1579055489305
    • Recovery codes
      • 點擊任何按鈕,再點擊 "Next"
    • 打開手機,需先安裝 Google Authenticator

      1579056069368
    • 掃描Github網頁上的條碼,輸入APP提供的驗證碼

      123
  3. Sourcetree如何設定2FA?
    • 其實不需要設定2FA,但是只有帳號、密碼依然無法驗證身分
    • 需要額外的 personal access token
      • User → Setting → Developer settings → Personal access tokens

        1579056390791
      • 點擊 Generate new token
      • 勾選需要的權限後,點擊 Generate token

        1579056655800
      • 複製 token,待會 Sourcetree設定需要
      • 打開Sourcetree,於輸入密碼的欄位填入token

        1579056894289
  4. 若無法設定密碼
    • 至使用者 ..\AppData\Local\Atlassian\SourceTree 資料夾中,刪除passwd該檔案
    • 重新啟動Sourcetree
  5. 參考資料

沒有留言:

張貼留言

本網站建議使用電腦或平板瀏覽