Setting up HTTPS git connection with 2FA Enabled

git

(molly.lippsett) #1

If you are connecting to a git repository via HTTPS and you have Two-Factor Authentication enabled on your git repository account, you will need to use an access key as your password, rather than your account password with username.

To set up these access keys:

In GitHub:

1. In the upper-right corner of any page, click your profile photo, then click Settings.
  1. In the left sidebar, click Developer settings.
  2. In the left sidebar, click Personal access tokens.
  3. Click Generate new token.
  4. Give your token a name.
  5. Select repo permissions.
  6. Click Generate token.
  7. Click to copy the token to your clipboard. For security reasons, after you navigate off the page, you will not be able to see the token again. Use this token instead of your password, with your username, to connect to your repository in Looker.

In GitLab

1. In the upper-right corner of any page, click your profile photo, then click Settings.
  1. In the left sidebar, click Access Tokens
  2. Give your token a name
  3. Select api permissions.
  4. Click Create personal access token
  5. Click to copy the token to your clipboard. For security reasons, after you navigate off the page, you will not be able to see the token again. Use this token instead of your password, with your username, to connect to your repository in Looker.

In Bitbucket

1. In the bottom-left corner of any page, click your profile photo, then click Bitbucket settings.
  1. Under the Access Management menu in the sidebar, select App passwords
  2. Click Create app password
  3. Give your password a label
  4. Select Account and Repositories permissions
  5. Click Create
  6. Copy your new app password. For security reasons, after you navigate off the page, you will not be able to see the token again. Use this token instead of your password, with your username, to connect to your repository in Looker.