Commit 12ff4d32 authored by Harsh Chouraria's avatar Harsh Chouraria Committed by Mike Jang

SSH does not work with personal access tokens

The SSH mode of access purely relies on the key material being exchanged
during the SSH protocol, and does not perform lookups of passwords or
personal access tokens

The doc page is correct in that the tokens can be used in place of
passwords for basic HTTP(S) authentication, but they cannot be used as
passwords during SSH operations performed through Git
parent 3a4b5218
...@@ -14,7 +14,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -14,7 +14,7 @@ info: To determine the technical writer assigned to the Stage/Group associated w
If you're unable to use [OAuth2](../../api/oauth2.md), you can use a personal access token to authenticate with the [GitLab API](../../api/README.md#personalproject-access-tokens). If you're unable to use [OAuth2](../../api/oauth2.md), you can use a personal access token to authenticate with the [GitLab API](../../api/README.md#personalproject-access-tokens).
You can also use personal access tokens with Git to authenticate over HTTP or SSH. Personal access tokens are required when [Two-Factor Authentication (2FA)](account/two_factor_authentication.md) is enabled. In both cases, you can authenticate with a token in place of your password. You can also use personal access tokens with Git to authenticate over HTTP. Personal access tokens are required when [Two-Factor Authentication (2FA)](account/two_factor_authentication.md) is enabled. In both cases, you can authenticate with a token in place of your password.
Personal access tokens expire on the date you define, at midnight UTC. Personal access tokens expire on the date you define, at midnight UTC.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment