GitLab - NetID Credentials No Longer Working - How To Generate Access Token Or Use SSH Credentials

Body

Problem

User was previously using https authentication for gitlab.msu.edu with their NetID credentials. This no longer works. To fix this, users must either:

  • generate an access token, or
  • use ssh credentials (recommended).

Environment

Gitlab

Resolution

Option 1 - SSH Credentials (recommended)

URLhttps://gitlab.msu.edu/-/profile/keys

  1. Create ssh key-pair on workstation.
  2. Enter *public* key into "Key" field.
  3. Enter title and optional expiration date.
  4. Click Add key

Usage

Gitlab will accept corresponding private key anywhere SSH credentials are supported.

Option 2 - Access Token

URLhttps://gitlab.msu.edu/-/profile/personal_access_tokens

  1. Specify token name
  2. Specify expiration date ( leave blank for permanent)
  3. Select scope (ie: write_repository)
  4. Click 'Create personal access token'

The new token will be listed as "Your new personal access token".

Usage

This can be used as a password for anything as determined by scope selected.

Notes:

Cause

Known issue.

 

Details

Details

Article ID: 1614
Created
Thu 4/27/23 11:21 AM
Modified
Mon 7/3/23 2:39 PM

Related Services / Offerings

Related Services / Offerings (1)

GitLab is a single application for the entire software development lifecycle. From project planning and source code management to CI/CD, monitoring, and security.