Setting up HTTPS git connection with 2FA Enabled

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. 36a0dc7292b349a0fa025f3e5ac77e26928f57c6.jpg
  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.
    8c209bd255f684755ff675d367b9639afde569f3.png
  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. 8450021c55211fc12bed753e647b38e4a1eb487a.png
  1. In the left sidebar, click Access Tokens
    8b83e01aa92d1ed5f31106ceac936c6b23e6c3c8.png
  2. Give your token a name
  3. Select api permissions.
    9f6524e92e324b81e545f8c7956ed37d0da69a41.png
  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. 6ea6fa8bf9311fe01dd6a0f2cd16b5bee0218051.png
  1. Under the Access Management menu in the sidebar, select App passwords
    2de91caf1fed02d7fbb56cf86785fd8c8e37e238.png
  2. Click Create app password
  3. Give your password a label
  4. Select Account and Repositories permissions
    997a94c85d78c13208e649a685fc84c614241099.png
  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.
2 0 5,441
0 REPLIES 0