How do I work with github when A2F is enabled?

Asked

Viewed 99 times

2

By enabling two-factor authentication on Github I am required to work with RSA key to update repositories?

When A2F (Authentication Two-Factor) is active unique code is requested, I imagine Git itself does not work with it, so I believe in this scenario I am required to use an authentication key, type RSA. I am correct?

1 answer

3


You don’t have to.

Using "A2F" (or 2FA or Two-factor Authentication), you can work using RSA key (SSH key) or via HTTPS.

If you want to use HTTPS, you need to create a personal access token which will be used as password when authenticating via command line using an https URL. This way, using the token is transparent even if Git itself doesn’t work with it.

  • 1

    Great, I didn’t know about the token. Thank you!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.