<div dir="ltr"><div>For the ones who are worried about losing all credentials for their GitHub account, here are some official answers from GitHub support.<br><br></div>Victor<br><br><div><div><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Michael (GitHub Staff)</b> <span dir="ltr"><<a href="mailto:support@github.com">support@github.com</a>></span><br>Date: 2017-12-12 11:05 GMT+01:00<br>Subject: Re: What happens if I loose my password, 2FA key and recovery key<br>To: Victor Stinner <<a href="mailto:victor.stinner@gmail.com">victor.stinner@gmail.com</a>><br><br><br><u></u> 


  
  

  



<div>

<table id="m_-2174735088893718644backgroundTable" cellspacing="0" cellpadding="0" border="0" width="100%">
  <tbody><tr>
    <td valign="top">

    <table cellspacing="0" cellpadding="0" border="0" width="100%">
      <tbody><tr>

        <td valign="top">

          <p>Hi Victor,</p>

<p>Thanks for getting in touch.</p>

<p>To address your questions:</p>

<blockquote>
<p>The question is what happens if you loose your password, your 2FA key and your recovery key... Ok, it's unlikely, but it's a real question.</p>
</blockquote>

<p>If you were to lose access to all of your 2FA credentials, I'm afraid we wouldn't be able to disable 2FA for you, for security reasons. For this reason, we recommend setting up one or more fallbacks.</p>

<p>One way of safeguarding recovery keys is storing them in an encrypted password manager like 1Password or LastPass, which often have cloud backup capabilities. </p>

<blockquote>
<p>The second question is if the email account comes into the play as the last attempt to recover access to the GitHub account.</p>
</blockquote>

<p>The email and password associated with an account provide one factor of authentication. If 2FA is enabled, a second factor is required. In the case of someone losing access to all 2FA credentials, but still having access to the email associated with an account, we aren't able to disable 2FA, but can release the email address from the account. This would then allow the user to register the email address to a new account. Additionally, any contributions associated with that email address would follow along to the new account.</p>

<p>At present, we have a range of fallbacks, which I'll list below. It's a good idea to use more than one, while also being mindful of not creating too much exposure.</p>

<p><b>Download your recovery codes.</b> This is far and away the best way to make sure you don't get locked out of your account. If you ever disable and then re-enable 2FA, be sure to download the new codes we generate as the old ones will no longer work.</p>

<p><a href="https://help.github.com/articles/downloading-your-two-factor-authentication-recovery-codes" target="_blank">https://help.github.com/<wbr>articles/downloading-your-two-<wbr>factor-authentication-<wbr>recovery-codes</a></p>

<p><b>Set a fallback number.</b> As long as your phone wasn't lost, you'll be able to regain access to your account in the amount of time it takes to receive an SMS.</p>

<p><a href="https://help.github.com/articles/setting-a-fallback-authentication-number" target="_blank">https://help.github.com/<wbr>articles/setting-a-fallback-<wbr>authentication-number</a></p>

<p><b>Add a security key.</b> Phone got stolen <i>and</i> you lost your recovery codes? Today is turning into a rough day, but you'll still have access to your account if you have a FIDO U2F security key added to your account.</p>

<p><a href="https://help.github.com/articles/configuring-two-factor-authentication-via-fido-u2f" target="_blank">https://help.github.com/<wbr>articles/configuring-two-<wbr>factor-authentication-via-<wbr>fido-u2f</a></p>

<p><b>Store a recovery token</b> If you use Facebook, you're now able to store a 2FA recovery token with your account. Here's how:<br>
<a href="https://help.github.com/articles/generating-and-storing-an-account-recovery-token" target="_blank">https://help.github.com/<wbr>articles/generating-and-<wbr>storing-an-account-recovery-<wbr>token</a></p>

<p><b>Set up an SSH key</b> We’re sometimes able to recover an otherwise locked out account if there’s an SSH key set up. You can add one by heading to:<br>
<a href="https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/" target="_blank">https://help.github.com/<wbr>articles/adding-a-new-ssh-key-<wbr>to-your-github-account/</a></p>

<p>Let me know if you have any questions or if there's anything else we can help with!</p>

<p>Best regards,</p>

<p>Michael</p>

        </td>
      </tr>
    </tbody></table>

    </td>
  </tr>
</tbody></table>
</div>

</div><br></div></div></div>