How can I work with GIT repositories under Linux (Debian and Ubuntu) if the repository enforces 2FA? It seems the command line GIT client does not have any support for this. GIT Desktop does not seem to be available for Linux. Are there Alternatives?

Note: I already tried to use "Personal Access Tokens" like described here ...

Make “git pull/push/clone” work with two factor authentication

but on "git clone https://...git" I am, after entering my GIT username and the newly created token instead the password, still getting the error message

remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.


1 Answer 1


The official GitHub command-line client supports browser-based logins.

In practice, it’s common to use SSH keys instead of 2FA; see the GitHub documentation on setting up SSH, and then update your remote URIs to use SSH ([email protected]:project/repository.git).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .