How to work with github when A2F is enabled?

2

When I enable two-factor authentication in Github, do I have to work with the RSA key to update the repositories?

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

    
asked by anonymous 27.08.2018 / 06:14

1 answer

3

No thanks.

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

If you want to use HTTPS, you need to create a personal access token that will be used as a password when authenticating via the command line using an https URL. In this way, the use of the token becomes transparent even if Git itself does not work with it.

    
04.09.2018 / 17:52