Copyright Reserved

Authenticating Git & GitHub

Beta Scribbles
4 min readSep 25, 2023

--

Authenticating GitHub is important to protect your account and your code from unauthorized access:

  1. Username and password with two-factor authentication, or a passkey
  2. Personal access token
  3. SSH key

1. Username and password with two-factor authentication, or a passkey

As the default authentication method. Requires you to enter your login credentials each time you want to access GitHub. Currently, this method only supports GitHub login, but not project cloning and pushing

1.1 Username and password with 2FA

Requires you to enter your username, password, and a one-time code from your phone each time you want to authenticate.

This adds an extra layer of security to your account, as even if someone has your username and password, they will not be able to log in without the one-time code.

1.2 Passkey

A passkey is a unique digital credential that can be used to authenticate to websites and apps without the need for a password.

To use a passkey, you will need to create one on your device and then register it with GitHub.

--

--