Topics

www.cloudlofty.com domain for sale. Contact @ sprakash26790@gmail.com

Thursday, November 13, 2014

Configuring “Two-Factor Authentication in GitHub (2FA)”

We can set 2FA using multiple ways.
·        Using SMS,
·        Using Smartphone and Command Prompt.
Let’s see..,

First Login into https://github.com/
Once you logged into the GitHub
Navigate to "settings (top right corner) -> Security".
Here the status is in OFF (Here we going to enable 2FA).

Click on "Set up two factor authentication" and select "Set up using SMS"

Using SMS:
Ø  Provide the “Country Code” and “Phone Number” in separate text box and click “Send Code” button.
Ø  Enter the 6-digit code which is received in your phone. Then click “Enable”.
<Now you almost done>

But don’t forget to download the Recovery codes, because it is very useful for future reference.
Because the recovery codes can be used to access your account in the event you lose access to your device and cannot receive two-factor authentication codes.
You can’t use the codes once you used (Better to store in your personal mail).

Using Smartphone and Command Prompt:
Ø  Click "Set up two factor authentication" and select "Set up using an app"
Ø  Now you can configure in two ways
·        Using Smartphone
·        Using Command Prompt

Using Smartphone:
If you have Smartphone with you, then you are eligible for this.

Here are the steps.
Ø  Go to "Play store" in your mobile then download the Authenticator.jar file
Ø  Then run that Authenticator.jar file.
Ø  Now there is an option for scanning the QR code say "Scan QR code" in your mobile. Just scan the QR code which is in Github two-factor authentication page.
Ø  Now Authenticator.jar app will give you a 6-digit code.
Ø  Enter that code in “2. Enter the 6-digit code that the application generates” text box which is in Github two-factor authentication page.
<Now you almost done>

(Remember) But don’t forget to download the Recovery codes, because it is very useful for future reference.
Because the recovery codes can be used to access your account in the event you lose access to your device and cannot receive two-factor authentication codes.
You can’t use the code once you used (Better to store in your personal mail).

Using Command Prompt:
Ø  Now Click "enter this text code" and it will show you two-factor secret code.
Ø  Now save it as secret.txt in a folder for example say GitAuth.
Ø  Then click below links to download the Authenticator file.
·        For Windows (Download)
·        For Ubuntu (Download)
Ø  Save it in GitAuth folder.
Ø  Open the Command Prompt (Win+R -> cmd -> enter) and go to the GitAuth folder path.
Ø  Now enter the below command without quote

For Windows : 
Run : "java -cp Authenticator.jar Authenticator.Main secret.txt"
For Ubuntu : 
Compile : "javac -cp ./Authendicator/*.java"
Run : "java -classpath ./ Authenticator.Main /home/prakash/secret.txt"

Ø  Command Prompt will give you 6-digit secret code.
Ø  Enter that code in "2. Enter the 6-digit code that the application generates" which is in github two-factor authentication page.
<Now you almost done>

(Remember)But don’t forget to download the Recovery codes, because it is very useful for future reference.
Because the recovery codes can be used to access your account in the event you lose access to your device and cannot receive two-factor authentication codes.

You can’t use the code once you used (Better to store in your personal mail).


No comments: